PDA

View Full Version : Fairly Simple Base Batch File



DarkBlood
March 23rd, 2006, 21:04
If anyone wanted to use a fairly simple batch file, I'll give out this one to everyone.

Just a few things to explain:

@ECHO OFF doesn't mean the echo function won't work, it's just the echo part of the command will not be displayed.

cls means clear the current screen. Pause means exactly what it is named. Exit will close the command prompt.

Since I cannot upload this file to FWS.net's forums, I'll post the code instead:


@echo off
cls
echo /********************************\
echo # Test Batch File... #
echo # Version: 1.0 #
echo \********************************/
pause
cls
ping localhost
pause
cls
echo ... ... .. .. .....
echo . . . . .... .. ..
echo . . . . .. .... ....
echo . . . . .. ... ..
echo ... ... .. .. .....
echo Test Batch File v1.0 Completed Running.
echo Please note after hitting any key after this point will close DOS/CMD.
echo If you wish to continue using CMD/DOS, you will have to bring up another window.
pause
exit

Just copy and paste into a new .bat file and then double click the file. Also, feel free to discuss any "Batch File" Related problems here. I won't be of much help, but then again, I know some things about DOS that most people would not know.