DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: How can I automatically run a command after an application closes?  (Read 7,292 times)

katykaty

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 224
Norton Ghost installs a windows xp service, which I assume controls its backup scheduler. But I start my backups on demand so don't need it.

The problem is, if I stop the service through WinPatrol, Ghost just starts it again next time it runs.  :mad:

I've discovered I can use
Code
sc stop "norton ghost"

to stop it - so is there any way I can make that command automatically happen once Ghost has completed its shutdown?

Thanks  :D

gjehle

  • lonesome linux warrior
  • Member
  • Joined in 2006
  • **
  • Posts: 286
    • Gathering Badge
if you'd start an executable that wont finish till it's done you can write a batchfile

Code
commandA
commandB

katykaty

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 224
Thanks - I'll try that  :)

Original address: https://www.donationcoder.com/forum/index.php?topic=8497.0