Open program after another one closes
Moderator: DosItHelp
-
- Posts: 4
- Joined: 26 Mar 2013 06:48
Open program after another one closes
i want a dos batch to detect when I close a certain file and automatically open another file, any ideas?
Re: Open file after one closes
Task list in a loop will help, if your OS has tasklist.exe
-
- Posts: 4
- Joined: 26 Mar 2013 06:48
Re: Open file after one closes
I'm going to run on multiple machines, I can't be sure all have task list.
Re: Open file after one closes
Tasklist or PSlist (free download from Microsoft) will allow you to monitor what is running easily.
Re: Open file after one closes
Windows XP and above all have TASKLIST
Re: Open file after one closes
Does XP Home have tasklist but not taskkill? I am 99% sure it doesn't have taskkill.exe but not sure about tasklist.exe
EDIT:
Ahh, it doesn't have either. But it's available.
http://answers.microsoft.com/en-us/wind ... 1c107441a5
EDIT:
Ahh, it doesn't have either. But it's available.
http://answers.microsoft.com/en-us/wind ... 1c107441a5
Re: Open file after one closes
foxidrive wrote:Does XP Home have tasklist but not taskkill? I am 99% sure it doesn't have taskkill.exe but not sure about tasklist.exe
EDIT:
Ahh, it doesn't have either. But it's available.
http://answers.microsoft.com/en-us/wind ... 1c107441a5
Ah Yes. There were a few OxyMorons (pun intended) at Microsoft with Windows XP Home. It had TSKILL but not TASKKILL. Makes not sense to not include TASKLIST.
Re: Open file after one closes
Dosanderson wrote:i want a dos batch to detect when I close a certain file and automatically open another file, any ideas?
Are you talking about program files, or data files?
-
- Posts: 4
- Joined: 26 Mar 2013 06:48
Re: Open file after one closes
foxidrive wrote:Dosanderson wrote:i want a dos batch to detect when I close a certain file and automatically open another file, any ideas?
Are you talking about program files, or data files?
Program files
-
- Posts: 184
- Joined: 21 Feb 2013 15:54
Re: Open program after another one closes
Would it be ok if the batch file started with the first program? It would then detect when you close the first program process, then it would launch the second.
-
- Posts: 4
- Joined: 26 Mar 2013 06:48
Re: Open program after another one closes
pditty8811 wrote:Would it be ok if the batch file started with the first program? It would then detect when you close the first program process, then it would launch the second.
Yeah that would work fine, can you go into a little more detail about how to do this?