ASP Developer Network - Brought to you by Steve Radich and BitShop, Inc. - http://www.bitshop.com

Menu [hide]

Viewing blog post

Return to blog

HOWTO: Run any program as a service on Windows

posted by steveradich on Tue 17 of Jan, 2006 [07:00 UTC]
HOWTO: Run any program as a service on Windows

Question:

I need to run (some application) always with system startup. The program is not designed to be a service, what can I do?

Answer:

This is a pretty common question of Windows admins, programs have to be designed to be a service by default, however most are not - And services generally don't have a UI (User Interface).

I found this handy program for creating windows services, there's a LOT of different solutions out there with this same functionality, even srvany.exe from Microsoft (part of the resource kit), however I found this one more useful:

http://www.codeproject.com/system/xyntservice.asp?df=100&forumid=1239&exp=0&select=952286external link (cache)

This uses a simple .INI file which can contain multiple programs which will run under your single service. It also has the capability to easily specify if they interact with the desktop or not, and if they should be restarted automatically if they fail / exit (for example if a user accidentally closes the program).


Permalink (referenced by: 1 posts references: 0 posts) print email this post

Trackback pings:

Title URI Blog name
fast weight loss http://wiki.clinicalflow.com fast weight loss
Search
in:
Our Sponsors
Need a Virtual Server 2005 Hosted Account? Why not trust ASPDeveloper's Team? We're a division of www.bitshop.com
FREE .Net 2.0 Tutorials Available Now
http://www.aspdeveloper.net
Latest Virtual Server 2005 R2 News
www.virtualserverfaq.com/ng
Want to contribute to aspdeveloper.net? Contact us! suggest@aspdeveloper.net
Want to contribute to aspdeveloper.net? Contact us! suggest@aspdeveloper.net
rss Wiki rss Blogs rss Articles rss Image galleries rss File galleries rss Forums rss Maps rss Directories
ASP Developer Network (since 1996) - Brought to you by Steve Radich and BitShop, Inc. - http://www.bitshop.com
Copyright © 1997-2005 by BitShop, Inc. All Rights Reserved.
No content may be reproduced in any form without written permission from BitShop, Inc.
We will be honored to assist with reproduction rights on our material if you contact us.
We also can provide print articles for your magazine, private training seminars at your site, and conference presentations.

Thank you for visiting. Please bookmark our site if you found it useful!
If you wish to make a donation it will help further the development of these free resources: