Search found 4 matches
- 21 Dec 2016 04:15
- Forum: DOS Batch Forum
- Topic: Taskkill and then start another prosess
- Replies: 7
- Views: 5714
Re: Taskkill and then start another prosess
Ah ok that means i have it the wrong way round @echo on taskkill /im myapp.exe echo App is Closing Down Please wait... ping -n 5 127.0.0.1>nul cd c:\location\ tasklist /FI "IMAGENAME eq myapp.exe" >nul | find /I /N "myapp.exe" IF "%ERRORLEVEL%"=="0" PING -n 5 ...
- 19 Dec 2016 11:03
- Forum: DOS Batch Forum
- Topic: Taskkill and then start another prosess
- Replies: 7
- Views: 5714
Re: Taskkill and then start another prosess
Hi guys well i have go this far so far. It keeps returning the errorlevel as 1 even when the program is not running. So i thinki have done something worng. I have changed the way it works a little as thinking about it if i was to loop it and the program was never to close it would just keep looping....
- 16 Dec 2016 12:46
- Forum: DOS Batch Forum
- Topic: Taskkill and then start another prosess
- Replies: 7
- Views: 5714
Re: Taskkill and then start another prosess
Squashman wrote:Use TASKLIST to see if it is still running and keep looping back until it is not running anymore.
Thanks i will have a look at this
- 16 Dec 2016 08:39
- Forum: DOS Batch Forum
- Topic: Taskkill and then start another prosess
- Replies: 7
- Views: 5714
Taskkill and then start another prosess
Hi guys, Is there someone who can point me in the right direction. My end goal is to have a batch file that will kill a application but keep checking to see when the application has successfully closed down. Then open another application. So if i do a taskkill /im app.exe This will then get the appl...