Thread: Run program as Windows 2003 Service

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    35

    Run program as Windows 2003 Service

    Hi,

    I have written some back up software using MFC (VC++)

    I would like the program to automatically run at a given time (to back up the data).

    I assume I have to install it as a service (Windows Server 2003).

    Can anyone point me in the right direction on how to achive this.

    Many Thanks

    Mike

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    When I typed "windows programming service" into the google search box, you'll never guess what the first result was.

    How to write a Windows NT service

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    if you are running XP you can let the os schedule it -- see description of Schtasks. Click Start ==> Help & Support ==> enter "Schtasks" in the search box. You want need to make your program a Service if you use that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Changing a program into a Win Service
    By phal in forum Windows Programming
    Replies: 15
    Last Post: 08-03-2008, 05:31 PM
  2. program run as service
    By statquos in forum C++ Programming
    Replies: 2
    Last Post: 06-02-2008, 11:43 AM
  3. Replies: 2
    Last Post: 12-22-2006, 08:45 PM
  4. writing a windows service
    By talz13 in forum Windows Programming
    Replies: 2
    Last Post: 07-01-2004, 06:32 AM
  5. windows service + hooks + dll
    By rotis23 in forum Windows Programming
    Replies: 5
    Last Post: 09-04-2003, 07:06 AM