Posted by drumsticks on May 02, 2008 at 12:15:41:
Hello,
I'm attempting to parse a path using the FOR command:
SET path=c:\webserver\second\third
FOR /F "usebackq tokens=1,2,3,4 delims=\" %%G IN (%path%) DO (SET drive=%%G&SET webserver=%%H&SET secondDir=%%I&SET thirdDir=%%J)
However, this is not working. Would you happen to know what I am doing incorrectly?
Thanks for any help or direction!