topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday April 18, 2024, 12:02 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

katykaty

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 224
    • View Profile
    • Donate to Member
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
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

  • Member
  • Joined in 2006
  • **
  • Posts: 286
  • lonesome linux warrior
    • View Profile
    • Open Source Corner
    • Read more about this member.
    • Donate to Member
if you'd start an executable that wont finish till it's done you can write a batchfile

commandA
commandB

katykaty

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