Posted by 20080503 on May 03, 2008 at 04:31:42:
In Reply to: Edited: Parsing a path with FOR command in DOS posted by drumsticks on May 02, 2008 at 12:47:10:
Try this:
FOR /F "tokens=1,2,3,4 delims=\" %%G IN ("%path%") DO (SET drive=%%G&SET webserver=%%H&SET secondDir=%%I&SET thirdDir=%%J)