Send to a Friend

XOIIO's avatar

Why won't this batch script work?

Asked by XOIIO (18328points) July 22nd, 2011

I have this batch script, I want it to loop the little animation while a program is running, but it only cycles once and then goes to the next part of the script. How can I get this to work in xp, vista and 7?

echo Windows Media Player 1/11
START wmp11-windowsxp-x86-enu.exe
echo.

:loop
echo INSTALLING WINDOWS MEDIA PLAYER…...........................................^|
ping localhost -n 1 >nul
cls
echo INSTALLING WINDOWS MEDIA PLAYER…...........................................^/
ping localhost -n 1 >nul
cls
echo INSTALLING WINDOWS MEDIA PLAYER…...........................................^-
ping localhost -n 1 >nul
cls
echo INSTALLING WINDOWS MEDIA PLAYER…...........................................^\
ping localhost -n 1 >nul
cls
tasklist|>nul find /i “wmp11-windowsxp-x86-enu.exe”
if errorlevel 1 (
GOTO next
) else (
GOTO loop
)

Using Fluther

or

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.