as the title suggests I'm trying to create a batch file to start some programs whenever I want. It has been a while since I've dealt with this so I'm rusty.
My current lines are
@echo off
start "" "TaskMgr"
start "" "path to exe1" /wait
start "" "path to exe2" /wait
As I've found if I want to start them one AFTER another and not in parallel I need to use /wait
. What I'm unsure of is the task manager line. I've found that you can start it with simple TaskMgr
(which doesnt allow for any other line reading in the file and keeps command prompt up) and since I'm not using the path to task manager exe I was wondering if this is the correct way to do this.
If I have somewrong understanding comments are welcome.
P.S./Bonus: On unrelated note, how does one paste multiple code lines to be displayed as code here so that one wouldnt need to spam 4 spaces at the beggining of each line? (which might ruin the tabulation if not attentive enough)