MS-DOS (or DOS) has its own built-in scripting language, which is commonly referred to batch. To create batch files, use a text editor such as Notepad++ and name the file with a .bat file extension. For example, one could name the file below menu.bat and then run it from the DOS prompt by typing menu.
The following program presents the user with a menu. @echo off turns off displaying a command in DOS and just performs echo.
Example: Simple Output in MS-DOS Batch
@echo off echo Main Menu echo --------- echo 1. Run Program #1 echo 2. Run Program #2 echo 3. Run Program #3 echo 4. Exit
Screenshot of above MS-DOS batch file running: