Clicky

Hello,

I've created a small desktop application with VS2010, Win forms. My app is periodically making a backup of some directories. Now the problem is, that I've started this app logged with my user name, which means when I log off, the app will also shut down. (My application is running on Windows server 2003, .NET framework 3.5). So I've come on idea that application should be run as windows service for all users. How can I add my application to windows services, so it can be seen there, amongst other services?

 
Untitled.jpg
  • 92 KB
  • Windows services
Untitled.jpg

    asked 12/14/2011 08:19

    AntonioRodrigo's gravatar image

    AntonioRodrigo ♦♦


    3 Answers:
    I suggest you write a Windows Service and use the Forms application only to configure or command the service. VS2010 has a ready template for a service.
    link

    answered

    Toxacon's gravatar image

    Toxacon

    Hi,

    Refer below links for windows services.
    http://www.switchonthecode.com/tutorials/creating-a-simple-windows-service-in-csharp
    http://www.codeproject.com/KB/system/WindowsService.aspx

    Can you use task scheduler for your need. You can add your application's exe in task scheduler and set time. So that it will run on that particular tiime everyday and will take backup.
    link

    answered 2011-12-15 at 04:30:24

    rajapandian_81's gravatar image

    rajapandian_81

    Your answer
    [hide preview]

    Follow this question

    By Email:

    Once you sign in you will be able to subscribe for any updates here

    By RSS:

    Answers

    Answers and Comments

    Tags:

    ×59
    ×33
    ×4
    ×37

    Asked: 12/14/2011 08:19

    Seen: 278 times

    Last updated: 12/15/2011 02:51