Re: Edited: Parsing a path with FOR command in DOS


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]

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)


Follow Ups:



Post a Followup (use TAB key to move between boxes - NOT ENTER or RETURN)

Name:
E-Mail:

Subject:

Type your comments in the box below and SUBMIT:


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]