If you’re running several commands, you could place the PAUSE command in between them. When you want to quickly run commands without seeing the output, you can omit this. In this case, it would print “Hello World” to the window and then immediately close the Command Prompt window. If you didn’t add PAUSE to the file, the batch file would simply run its commands and then automatically close. This particular batch file sets ECHO off (which cleans up the output by hiding the commands from being printed at the prompt, prints the text “Hello World” to the screen, and then waits for you to press a key before it ends. For example, you might want to name it hello_world.bat.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |