autorun when program closes?

J

johnnyzero

I was wondering if anyone out there knows of a utility that will let me
automatically run a specified program whenever I exit a certain *other*
program (ie: a specific window/handle is closed)?

I have a backup program that I want to run automatically whenever I
exit Thunderbird.

thanks,
JohnB
 
L

Lou

johnnyzero said:
I was wondering if anyone out there knows of a utility that will let me
automatically run a specified program whenever I exit a certain *other*
program (ie: a specific window/handle is closed)?

I have a backup program that I want to run automatically whenever I
exit Thunderbird.

thanks,
JohnB

Make a batch file that calls TBird and then calls the backup on the next
line.
The shortcut would be to the script.

Ask in a TB group if you need more help.

Lou
 
K

Klaatu

I was wondering if anyone out there knows of a utility that will let me
automatically run a specified program whenever I exit a certain *other*
program (ie: a specific window/handle is closed)?

I have a backup program that I want to run automatically whenever I
exit Thunderbird.

(assuming Windows XP below)

create a file called something like tb.cmd with these lines:

:: first line
start "" /wait thunderbird.exe
start "" backupprogram.exe
:: last line

Change the "thunderbird.exe" to the path and name of the Thunderbird
program, and do the same for the backup program. Use quotes if there are
any spaces. Then double click on this file to launch thunderbird and have
the backup program start after it exits.

HTH
 
J

johnnyzero

Thanks, Lou.

Actually, I think your suggested batch file would just run Thunderbird
and then immediately run the backup - thanks anyway.

Also, I'm pretty sure that this group IS the right place to ask my
question - since I'm looking for a piece of FREEWARE that'll do what I
want; and my question isn't TB-specific at all. Please correct me if
I'm wrong...

JohnB
 
G

Gary R. Schmidt

johnnyzero said:
Thanks, Lou.

Actually, I think your suggested batch file would just run Thunderbird
and then immediately run the backup - thanks anyway.

Also, I'm pretty sure that this group IS the right place to ask my
question - since I'm looking for a piece of FREEWARE that'll do what I
want; and my question isn't TB-specific at all. Please correct me if
I'm wrong...

JohnB
No, it won't.

"start/wait abcd" means start abcd and _wait_ for it to exit.

"start /nowait abcd" means start abcd and do the next thing immediately.

Somewhere back around Win95 or WinNT4, the default for "start abcd"
changed from "start/wait abcd" to "start/nowait abcd".

Cheers,
Gary B-)
 
J

johnnyzero

Gary said:
No, it won't.

"start/wait abcd" means start abcd and _wait_ for it to exit.

"start /nowait abcd" means start abcd and do the next thing immediately.

Somewhere back around Win95 or WinNT4, the default for "start abcd"
changed from "start/wait abcd" to "start/nowait abcd".

Cheers,
Gary B-)

--

Thanks, Gary. I was actually replying to Lou's earlier suggestion about
using a "straight" batch file. Klaatu's suggestion to use "/wait" was
right on the money.

best,
JohnB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top