You are here

Run a file on exit

4 posts / 0 new
Last post
twnty3svn
Offline
Last seen: 16 years 5 days ago
Joined: 2006-04-10 03:24
Run a file on exit

Just a quick question as to whether the launcher for Firefox or Thunderbird can run a .bat (or any file for that matter) file on exit? Or whether anyone knows of a extension that does the same thing.

The reason i'd like to konw if this functionaliy exists is because i want it to run my EncryptonClick .bat on close, automatically. If anyone has any other suggestions to acomplish the same thing, please post.

Thanks

Lurking_Biohazard
Lurking_Biohazard's picture
Offline
Last seen: 5 years 8 months ago
Joined: 2006-02-18 18:06
Try PStart

PStart can do this.

~Lurk~

~Lurk~

twnty3svn
Offline
Last seen: 16 years 5 days ago
Joined: 2006-04-10 03:24
Thanks, but

i already use PStart, and konw about this function. I currelty use it to encrypt one the TB folder, but i'd like to encrypt more than one, without having to do it all on shutdown of PStart.

Currently EncryptonClick dosn't support multipul folders. Anything else ppl can think of?

EDIT: just found out that the userChrome.js file can automaitcally run scripts (see http://www.extensionsmirror.nl/index.php?showtopic=5179), however this link only descirbes 'onLoad'. Anyone with any Java scripting konwledge know how to write a script to run a file onClose?

StephenQ
Offline
Last seen: 15 years 10 months ago
Joined: 2006-08-29 01:01
Yes, there is.

For onLoad, there is onUnload, which does what you want to do. This is a javascript command as mentioned, and if you can somehow get the javascript for launching an exe, you'll be good. Not sure on security settings though.

Topic locked