To start, open a Notepad or Wordpad document.
Lets try a simple batch command. type:
"@echo off
echo first test
pause"
Save as file.bat
Save as file.bat
@echo off – you would usually put this at the beginning of your files. It means that the program won’t show the command that you told it to run while it’s running – it’ll just run the command.
The pause command tells it to wait for the user to press a key before continuing,the result should look like :
Batch files can also be used to open webpages , eg opening hackinland.blogspot.com via internet explorer.
Open a new document,and type :
"@echo off
start iexplore.exe www.hackinland.blogspot.com"
Having a pause command at the end of the script and using the echo command instead of @echo off is optional,i recommend using echo instead of @echo off and adding a pause at the end of the script for people who are using this script for the first time because it will show the commands whilst doing them.

Thanks, ima prank my friend with it!:)
ReplyDeleteCan you explain me how to make like a quiz in .bat files?