Notepad is commonly used to convert text files into batch files, but you can write your batch file’s text in any word-processing software, like Google Docs.
Notepad is commonly used to convert text files into batch files, but you can write your batch file’s text in any word-processing software, like Google Docs.
However, if you write the same code with a line break between “ECHO” and “Congratulations!” the command will not work since the first item in the line is meant to be a command. Keep @ECHO OFF as the first line in your code so you don’t see the normal output from the command prompt opening.
Keep in mind that the command is the first word on each line. This includes “DEL” and the other codes listed below.
There are many possibilities for creating batch files, if needed, you can search the Internet for more codes. You can, for example, type “Echo” and then type a sentence or two that you want displayed in the Terminal window. Use “DEL” with a file location to delete files or files, like “del test. bat” Create more advanced batch files by using different commands: ECHO - Displays text on the screen @ECHO OFF - Hides the text that is normally output START - Run a file with its default application REM - Inserts a comment line in the program MKDIR/RMDIR - Create and remove directories DEL - Deletes a file or files COPY - Copy a file or files XCOPY - Allows you to copy files with extra options FOR/IN/DO - This command lets you specify files. TITLE- Edit the title of the window.
To run it, all you need to do is double-click it.