Skip to main content

Topic: Close a program with Scheduler? (Read 931 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • Dirki
  • [*][*]
Close a program with Scheduler?
Can I make the Scheduler close a program, e.g. Thunderbird at a special time?
Win 7, Win Vista, newest stable foobar & EAC & Cue-Tools

  • trout
  • [*][*][*][*]
Close a program with Scheduler?
Reply #1
Using the "Launch application" action, which is basically running a system command prompt, you have some options.

Ideally, if the program has available a command line switch to close it, then you can just "launch" the program EXE with the termination switch (e.g. "Program.exe -exit"). But most programs do not have such a command.

Alternatively, since "Launch application" is a command line process, you can enter a command to kill the system process. BUT this is usually not a good idea because it is not a clean shutdown. It is basically like the program has crashed, with all the consequences thereof. So for example, you could launch "TASKKILL /f /im thunderbird.exe /t" - which will forcefully close Thunderbird ...but you probably will not like the result.

Better than killing the process would be to find a third-party tool which you could launch to cleanly close the program.
  • Last Edit: 15 January, 2013, 10:32:34 AM by trout
~ Sorry for my bad english.

  • Dirki
  • [*][*]
Close a program with Scheduler?
Reply #2
Many thanks, trout,

I wouldn't have the idea, that using the "Launch application" you can shut down a program.

Quote
Ideally, if the program has available a command line switch to close it, then you can just "launch" the program EXE with the termination switch (e.g. "Program.exe -exit"). But most programs do not have such a command.

I have just tried, that doesn't work. I have added this line: "I:\Thunderbird\App\Thunderbird\thunderbird.exe  -exit" in "Launch application".

Quote
Alternatively, since "Launch application" is a command line process, you can enter a command to kill the system process. BUT this is usually not a good idea because it is not a clean shutdown. It is basically like the program has crashed, with all the consequences thereof. So for example, you could launch "TASKKILL /f /im thunderbird.exe /t" - which will forcefully close Thunderbird ...but you probably will not like the result.

Yes, indeed, that doesn't seem to be the best choice.

Quote
Better than killing the process would be to find a third-party tool which you could launch to cleanly close the program.

Okay, I will try to find one.

Many thanks again.
Win 7, Win Vista, newest stable foobar & EAC & Cue-Tools