Wednesday, March 18, 2015

Batch Loading

Right now I am going to show you how to make it look like something is loading in batch.  So you have to use the timeout command and set it to nul so the person reading it doesn't know it is happening.  This is a basic one.

@echo Loading .
timeout /T > nul
@echo Loading . .
timeout /T > nul
@echo Loading . . .
timeout /T > nul

If you wanted it to go from 1 dot to three dots 3 times you could do it like this so you wouldn't have to repeat it over and over again.

@echo off

set aa = 0

:1

@echo Loading .

timeout /T 1 >nul

cls

@echo Loading . .

timeout /T 1 >nul

cls

@echo Loading . . .

timeout /T 1 >nul

cls

set /a aa=%aa%+1

If /i %aa% EQU 3 goto next

goto 1

:next
pause

No comments:

Post a Comment