Search found 2 matches
- 18 Mar 2011 04:38
- Forum: DOS Batch Forum
- Topic: setting variable within for loop
- Replies: 1
- Views: 3488
setting variable within for loop
Hi, My problem is as follows. I have 2 directories software_test_R1.1 and software_test_R1.2 contained with a parent directory called test My code is as follows @echo off for /f "tokens=* delims=" %%X in ('dir /ad /b') do ( for /f "tokens=3 delims=_" %%A IN ("%%X") do (...
- 15 Mar 2011 16:32
- Forum: DOS Batch Forum
- Topic: for command issue
- Replies: 1
- Views: 3039
for command issue
Hi, I am a complete newbie on batch programming. The following line is causing me a problem in my batch file for /d %%X in ("%cd%\*") do echo %%X When I run this within C:\Documents and Settings .i.e the %cd% value then it seems to have a problem with the spaces in "C:\Documents and S...