(view source code of twirly.bat as plain text)
@ECHO OFF
REM By Brian Williams
REM hieyeque1@gmail.com
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION
CALL :GETCR
CALL :TWIRLY
GOTO :END
:TWIRLY
SET _SPINNERS=7
SET _SPIN=30
SET /P _DUM =Check this out ...!_CR!<NUL
PING 127.0.0.1>NUL
SET /P _DUM =Who hoo........................... !_CR!<NUL
FOR /L %%A IN (1,1,!_SPINNERS!) DO (
SET _PIPE=!_PIPE!^|
SET _SLASH=!_SLASH!/
SET _DASH=!_DASH!-
SET _WHACK=!_WHACK!\
FOR /L %%B IN (1,1,!_SPIN!) DO (
FOR %%C IN (^!_PIPE! !_SLASH! !_DASH! !_WHACK!) DO (
SET /P _DUM=Spin'em ----------------------------------- %%C!_CR!<NUL
PING 127.0.0.1 -n 1 >NUL
PING 127.0.0.1 -n 1 >NUL
)
)
)
ECHO Ok, that's enough.
PING 127.0.0.1>NUL
GOTO :EOF
:GETCR
rem subroutine returns a variable called _cr that contains the carriage return
FOR /F "TOKENS=*" %%A IN ('IPCONFIG') DO (
SET _CR=%%A
)
SET _CR=!_CR:~-1!
GOTO :EOF
:END
page last modified: 2024-04-16; loaded in 0.0057 seconds