I'm just tryin to test something out, and for some odd reason I can't get it to work.
:: Test of Loop ::
::::::::::::::::::::::::::::::::::::::::::
@ OFF
TITLE Starting the Loop!!!!!
set k=0
set i=0
set max=80
GOTO Switch
:Loop
SET L=%k%+1
SET k=%L%
IF %k%==%max% GOTO Finished
ELSE GOTO Switch
:Switch
IF %i%==0 GOTO part1
IF %i%==1 GOTO part2
IF %i%==2 GOTO part3
IF %i%==3 GOTO part4
:part1
CLS
ECHO Please Wait . . . |
set i=1
GOTO Loop
:part2
CLS
ECHO Please Wait . . . /
set i=2
GOTO Loop
:part3
CLS
ECHO Please Wait . . . -
set i=3
GOTO Loop
:part4
CLS
ECHO Please Wait . . . \
set i=0
GOTO Loop
:Finished
CLS
ECHO Finished The Loop!
PAUSE
EXIT[/code]
Basically, it's supposed to give me something like:
with a little spinning icon at the end...
Unfortunately, the output I get is:
The syntax of the command is incorrect
WTH? I don't see anything wrong!! Do you?
The ultimate goal is to incorporate this in aother batch file I have for my job, so it gives some feedback as to what's going on (so the dumbasses know what's going on). So... any idea what's wrong? I know it's Windows DOS scripting.... but it's what we use!!