This is a tutorial for writing batch scripts on Windows OS. Batch scripts go hand in hand with cmd.exe on Windows systems. To learn more about cmd.exe read my tutorial here.
In this tutorial we will just use notepad and save our files as with the .bat extension.
- Open up Notepad.exe
- Type
@echo hello world
- Save as hello.bat
- Navigate to the directory you saved hello.bat in and type hello.bat then press enter.
You can add comments to batch files by starting a line with either REM
or ::
.