Search found 2 matches
- 25 Oct 2016 09:20
- Forum: DOS Batch Forum
- Topic: Continuing a for /l after you put a IF ELSE statement inside of it
- Replies: 2
- Views: 1912
- 25 Oct 2016 08:52
- Forum: DOS Batch Forum
- Topic: Continuing a for /l after you put a IF ELSE statement inside of it
- Replies: 2
- Views: 1912
Continuing a for /l after you put a IF ELSE statement inside of it
FOR /L %%i IN (1,1,30) DO @( ping -n 1 -w 2 132.35.129.%%i << NUL IF %errorlevel% == 0 ( MD "\\132.35.129.%%i\c$\Test" ) ELSE ( ECHO PASS ) ) Basically, I'm trying to ping a workstation and if that ping is successful it makes a directory. But how do I continue the for /l after the if /els...