Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Apr 2001
    Location
    Des Moines, Iowa
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    service auto start/stop

    Anyone know how to schedule a service to start and stop at certain times of the day? I want to start a service in the morning, and have it shut off for a few hours at night while the data is backed up. I'm using Firedaemon to make an app a service.

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: service auto start/stop

    Task scheduler should do what you want on a local computer:
    Q235536 Task Scheduler Service on Windows NT

    For remote services:
    Winmag2000 forum, and a pictorial example <A target="_blank" HREF=http://www.iopus.com/guides/winscheduler.htm>here</A>.

  3. #3
    2 Star Lounger
    Join Date
    Apr 2001
    Location
    Des Moines, Iowa
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: service auto start/stop

    Thanks. While any one of those KB's wasn't a complete solution, they did, as a trio, hint at a solution. This was a forehead slapper

    For posterity I'll post what I did.

    Remember LanMan? Well I used the "net" commands here. I created two batch files, netstart.bat and netstop.bat.

    NetStart.bat=
    net start {"service name"}

    Net Stop.bat =
    net stop {"service name"}

    Then I used task scheduler, included with IE 4.0 and up (does not exist in NT 4 natively), to run those batch files when I want to stop and start the service.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •