Extract drive letter from "set /p P=" in bat file -


"drive / path ="

Pre-set / pp = echo% ~ dp

help, try several variables with% and %%, do not understand what is wrong.

 echo% ~ d1 

works perfectly, but the command line parameter is not an option.

I'm not stupid, just newbie ...


Comments