• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

can anyone write a batch file that will loop a variable from 1 to 100

OOBradm

Golden Member
I need a batch file that looks like this

FOR( x from 1 to 100)

//code here

END FOR



can anyone write something like this and would they for me it would be an excellent gesture
 
It basically looks like this:

:START
SET VAR=%VAR%+1
IF %VAR% <= 100 GOTO START


You will need to use a switch with SET command to make it increment a variable like that. (read the man page by doing SET /? and you will probably need to mess with the IF statement (try IF /?)). You may also need to enable delayed environment variable expansion.
 
Back
Top