IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Close a program with Scheduler?
Dirki
post Jan 15 2013, 08:44
Post #1





Group: Members
Posts: 85
Joined: 31-October 09
Member No.: 74494



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
Go to the top of the page
+Quote Post
trout
post Jan 15 2013, 16:28
Post #2





Group: Members
Posts: 423
Joined: 26-March 09
Member No.: 68400



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.

This post has been edited by trout: Jan 15 2013, 16:32
Go to the top of the page
+Quote Post
Dirki
post Jan 15 2013, 16:54
Post #3





Group: Members
Posts: 85
Joined: 31-October 09
Member No.: 74494



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
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 3rd September 2014 - 08:55