Support Forums
Need help with batch file - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Life Support (https://www.supportforums.net/forumdisplay.php?fid=12)
+---- Forum: Omni's Secret Hidden Inside Tricks (https://www.supportforums.net/forumdisplay.php?fid=13)
+---- Thread: Need help with batch file (/showthread.php?tid=1454)



Need help with batch file - Idiot #1 - 10-13-2009

I need to make a batch file that will display some text pause and display more text pause display text repeat. How would I do this?


RE: Need help with batch file - Gaijin - 10-13-2009

(10-13-2009, 08:25 PM)joey23art Wrote: I need to make a batch file that will display some text pause and display more text pause display text repeat. How would I do this?


first you'll need sleep.exe
http://www.microsoft.com/Downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

Code:
@echo off
:start
echo "Print 1"
sleep 10
echo " Print 2"

goto start

OR without sleep.exe

Code:
@echo off
:start
echo "Print 1"
ping 1.0.0.0 -n 1 -w 5000 >NUL
echo " Print 2"

goto start

-w 5000 means 5seconds