REM set command display to off
@echo off
REM start application App1.exe
START C:\windows\notepad
REM wait for 5 seconds
PING -n 5 localhost > nul
REM start application App2.exe
START C:\windows\notepad
REM exit batch after finish
EXIT
To test it, Open window notepad. Copy and paste code above to the notepad and save as "start.bat". To make it simple for testing, i have change C:\application\App1.exe to C:\windows\notepad and C:\application\App2.exe to C:\windows\notepad.
Double click on start.bat and you can see the batch file in action.
Hope this help.
No comments:
Post a Comment