windows scheduler to terminate and restart an app

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to find a way to use windows scheduler to automatically close and
restart a third party application. I was able to create a scheduler task to
start the application, but couldn't find a way to make it close first. Is
there a way to do this? I know i could schedule a batch file to use the
tskill command to kill the process/application first, and then have it
started, but would rather have the app do a gentle close instead of killing
the process.
Any help is appreciated.....thanks.
 
Replied to [Mike G]s message :
I am trying to find a way to use windows scheduler to automatically close and
restart a third party application. I was able to create a scheduler task to
start the application, but couldn't find a way to make it close first. Is
there a way to do this? I know i could schedule a batch file to use the
tskill command to kill the process/application first, and then have it
started, but would rather have the app do a gentle close instead of killing
the process.
Any help is appreciated.....thanks.

Without the /f switch, taskkill will not kill the application.

For example :
Open Notepad, Type some text
Open Command Prompt and type:
taskkill /IM notepad.exe
You will receive the notepad warning about file not saved...
 
Thanks Ayush I won't be able to test this until Sunday but think this command
will work. Little did I know tskill and taskkill are two different commands.
Thanks
Mike


Ayush" <"ayushmaan.j[aatt]gmail.com said:
Replied to [Mike G]s message :
I am trying to find a way to use windows scheduler to automatically close and
restart a third party application. I was able to create a scheduler task to
start the application, but couldn't find a way to make it close first. Is
there a way to do this? I know i could schedule a batch file to use the
tskill command to kill the process/application first, and then have it
started, but would rather have the app do a gentle close instead of killing
the process.
Any help is appreciated.....thanks.

Without the /f switch, taskkill will not kill the application.

For example :
Open Notepad, Type some text
Open Command Prompt and type:
taskkill /IM notepad.exe
You will receive the notepad warning about file not saved...
 
Back
Top