Microsoft
Software
Hardware
Network
Question : Batch File: Skip number 5
Hi there,
In the following script, I need to skip number 5.
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
for /L %%A in (1,1,10) do (
IF %%A == 5 GOTO :EOF
echo %%A
)
ECHO.
echo DONE
ECHO.
pause
EXPECTED OUTPUT:
--------------------------
-----
1
2
3
4
6
7
8
9
10
DONE
Thanks for your help,
Rene
Answer : Batch File: Skip number 5
So then, wouldn't that just be this?
@echo off
for /l %%A in (1,1,10) DO (
If %%A NEQ 5 (
echo %%A
REM rest of logic here...
)
)
~bp
Random Solutions
phpmailer problem after migrating from Windows WAMP to Ubuntu LAMP
how can i create window service in C# using InstallUtil.exe ??
Forward meeting requests to another mailbox
Firefox css border on inside of div when embedding Flash with SWFObject, why?
DHCP White list
The designer must create an instance of type 'Microsoft.VisualBasic.Com
patibility
.VB6.BaseC
ontrolArra
y' but it cannot because the type is declared as abstract.
css
looking for a powerful ActionScript 3 isometric engine
Microsoft PKI Design
Shared calendar does not show appointments until refreshed