tags:

views:

29

answers:

1

Suppose I have this:

set X = ..

How do I turn that later into an absolute path? Can you please write how it would be in a script?

I tried with %~dpX , but that gave this error message: The following usage of the path operator in batch-parameter substitution is invalid: %~dpX

+1  A: 

After a lot of searching, I figured out a way of doing this:

for %%y in (%X%) do set X=%%~dpy
Geo