Hey guys, I am a real newbie at Batch file making but I will list a few scripts and some commands....
Here we go...
First of all you can make batch files using Notepad.
1/ Open Notepad
2/ Type in the commands
3/ Click file/save... Where it says file name call it whateveryouwant.bat DO NOT FORGET THE .BAT AT THE END!!!! FOR THE LOVE OF GOD AND EVERYTHING HOLY!!!!!!
Some basic Commands:
@echo off - type this at the start of the batch file so no commands will show up when you run your batch file.
@echo on - type this at the start of the batch file so all the commands will show up when you run your batch file.
cls - Clears the screen.
pause - A very important command, It pauses the batch file from running and to continue you have to press a button on your keyboard.
color - Changes the colour of the font...
0 = Black 8 = Gray
1 = Blue 9 = Light blue
2 = Green A = Light green
3 = Aqua B = Light aqua
4 = Red C = Light red
5 = Purple D = Light purple
6 = Yellow E = Light Yellow
7 = White F = Bright White
So if you want to have the font colour green for e.g. you would type: color 02
echo - If you want to to have text display in your batch file use this command.
For e.g. if you want to say hello in your batch file you would type: echo Hello.
Now there are many, many more commands which you can get here: http://www.aumha.org/a/batches.php or search google.
Some scripts
Matrix thing:
@echo off
color 02
cls
:random
echo %random% %random%%random% %random%%random% %random%%random% %random%%random%
goto random
Password:
@echo off
color 2
cls
:password
echo Please enter password...
set/p password=>(type password here)
if %password%==(type password here) goto success
if not %password%==(type password here) goto fail
:fail
echo INCORRECT PASSWORD
pause
cls
goto password
:success
echo CORRECT PASSWORD
pause
cls
exit
Loading Effect
@echo off
title Loading...
color 2
set load=
set/a loadnum=0
:Loading
set load=%load%()
cls
echo.
echo Loading Test Subject... Please Wait...
echo ----------------------------------------
echo %load%
echo ----------------------------------------
ping localhost -n 2 >nul
set/a loadnum=%loadnum% +1
if %loadnum%==20 goto Done
goto Loading
:Done
echo.
pause
Choices
:start
echo 1. hello
echo 2. exit
set choice=
set/p choice= Select a number 1 or 2...
if not %choice%==set choice=%choice:~0,1%
if %choice%==1 goto hello
if %choice%==2 goto exit
echo %choice% is not valid please try again
echo.
goto start
:hello
echo Hello how are you today.
pause
cls
goto start
:exit
echo Goodbye have a nice day
pause
cls
exit
There are many more scripts and I will update as much as I can.