Search found 3 matches
- 29 Jan 2009 13:13
- Forum: DOS Batch Forum
- Topic: Using "set" within a for loop?
- Replies: 3
- Views: 7120
- 29 Jan 2009 11:12
- Forum: DOS Batch Forum
- Topic: Using "set" within a for loop?
- Replies: 3
- Views: 7120
- 28 Jan 2009 16:40
- Forum: DOS Batch Forum
- Topic: Using "set" within a for loop?
- Replies: 3
- Views: 7120
Using "set" within a for loop?
I'm utterly confused. "set" is acting very strangely within a for loop. Here's my code. PortList is a file with 4 lines of text. set count=1 for /f "tokens=1" %%i in (PortList) do ( echo %count%^) %%i set /A count=%count%+1 ) echo. set /P input=Please select [...