Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Much depends on the version of DOS.
=====================================
If at first you don't succeed, you're about average.M2

I don't know if this will help you... but still.
@echo off
set _number=0:start
if %_number%==500 goto end
echo %_number%
set /a _number +=1
goto start:end
echo it works~!
pause>nulit adds +1 to '_number' and when it reaches 500 it jumps to the :end
P.S. it will display numbers only till the 499 count, cuz after it reaches 500 it will jump to the end and skip the echo %_number% part... But you knew that right ;D ?

Sure, but not in DOS.
=====================================
If at first you don't succeed, you're about average.M2

I know this is a really old thread but......
for %a in (1,2,3,4,5) do for %b in (1,2,3,4,5,6,7,8,9,10) do for %c in (1,2,3,4,5,6,7,8,9,10) do command
[edit]
I just realised you can't nest for statements in most true dos os's(it's close to 127 characters anyway). Sorry for misleading you, maybe spreading it out to multiple lines would help.

![]() |
To change sheets of excel...
|
date math: the saga conti...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |