Edited by mikeloeven, 19 March 2010 - 11:25 PM.
simple batch file question
Posted 19 March 2010 - 11:25 PM
Posted 20 March 2010 - 03:56 AM
- One is to use "cmd /k name_of_batch_file" to launch your batch file. For example, let's say your batch file is named "test.bat" and it's in the root directory of drive C:. Click Start > Run, type in cmd /k c:\test.bat and press [Enter]. The "c:\test.bat" will run and leave the CMD window open. To close the CMD window, either click the "X" at the top right corner or type exit and press [Enter].
- Another way to do it would be to add the following three lines to the end of your batch file:
echo.Your batch file will remain open until you either click the "X" at the top right corner or press [Any] key.
echo Press any key to exit ...
pause > nul
Posted 22 March 2010 - 07:25 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users