I made a simple tutorial for you all.
This one is with pics :)Lets start...1. Basics1.1 - Creating a Batch file (.bat)
Simply, open up Notepad.
Click File, click Save, type ''tutorial.bat'' (or another name, if you wish, as long as it has the extention .bat).1.2 - Starting a Batch file
Start a Batch file with the code:
@echo offThis will prevent that any of the Batch codes will be displayed when running.1.3 - Displaying textThe Batch file will display text with the following code:
echo (yourtexthere)This will display ''(yourtexthere)'' on the screen (without the '').Be sure it is after the @echo off.1.4 - Asking for button press
If you want the user to press a button to continue, this is the ideal code!
PAUSEThis will cause:
(Press any key to continue)1.5 - Run an external program
If you want the Batch file run an external program, you need to know the full filename (name + extention).
Example (Batch going to run Notepad):
@echo off
start notepad.exeIf you want the Batch file to run an .txt file (or any other extention), you need to know the filename too.@echo off
start your_txt_filename_here.txt1.6 - Writing to an .ini or .txt fileIf you need the Batch file to write into another file, use this code:
@echo off
echo The_Text_You_Want_To_Write >> The_Filename_Of_The_File.txt/.iniThe >> tells the Batch file that the text must be writed to a file.**Will be updated, I'm still learning...**