Use start /w programname to wait for the end of programname
START /W notepad
ECHO Back from notepad
START /W wordpad
ECHO Back from wordpad
START /W notepad
More Related Contents:
- How do I get current date/time on the Windows command line in a suitable format for usage in a file/folder name?
- Symbol equivalent to NEQ, LSS, GTR, etc. in Windows batch files
- How do you get the string length in a batch file?
- How do you loop through each line in a text file using a windows batch file?
- How to delete files/subfolders in a specific directory at the command prompt in Windows
- How do I escape ampersands in batch files?
- How to use random in BATCH script?
- Batch script: how to check for admin rights
- Why does %date% produce a different result in batch file executed as scheduled task?
- Setting a system environment variable from a Windows batch file?
- How to correct variable overwriting misbehavior when parsing output?
- In Windows cmd, how do I prompt for user input and use the result in another command?
- Batch script loop
- FORFILES date -after- (date calc in cmd file)
- Create an empty file on the commandline in windows (like the linux touch command)
- Calculate time difference in Windows batch file
- What is the proper way to test if a parameter is empty in a batch file?
- In Windows: How do you programatically launch a process in administrator mode under another user context?
- How do I shutdown, restart, or log off Windows via a bat file?
- How do I create a shortcut via command-line in Windows?
- Why does findstr not handle case properly (in some circumstances)?
- Why “The system cannot find the batch label specified” is thrown even if label exists?
- Batch script with for loop and pipe
- How to rename file by replacing substring using batch in Windows [closed]
- Access clipboard in Windows batch file
- Rename all files in a directory with a Windows batch script
- Batch file encoding
- How do I increment a folder name using Windows batch?
- Out of a git console: how do I execute a batch file and then return to git console?
- UTF-16 to UTF-8 conversion (for scripting in Windows)