Blog coding and discussion of coding about JavaScript, PHP, CGI, general web building etc.

Saturday, April 2, 2016

is there an easy way to make a windows service?

is there an easy way to make a windows service?


Question: Is there a way to make a program run with out logging in that doesn't involve the long painful task of creating a windows service, or is there an easy way to make a simple service?


Info: I'm working on a little project for college which is a simple distributed processing program. I'm going to harness the computers on campus that are currently sitting completely idle and make my own little super computer. but to do this I need the client running on my target machines.

Through a little mucking around on the internet I find that what I need is a service, I also find that this isn't something quite as simple as making a scheduled task or dropping a .bat file into the start up folder.

I don't need a lot. if I could just get it to call "python cClient.py" i'm completely set. Is there an easy way to do this? like adding a key in the registry some where? or do I have to go through the whole song and dance ritual that microsoft has made for setting up a service?

Answer by John Saunders for is there an easy way to make a windows service?


Use Visual Studio and just create yourself a Windows Service project. I think you'll find it very easy.

Answer by Jacob Seleznev for is there an easy way to make a windows service?


The Windows NT Resource Kit introduced the Srvany.exe command-line utility, which can be used to start any Windows NT/2000/2003 application as a service.

You can download Srvany.exe here.

Answer by Wandering Penguin for is there an easy way to make a windows service?


If you already have the executable you wish to run as a service you can use "sc" built into the OS already. Microsoft details the procedure here: http://support.microsoft.com/kb/251192

example: sc create "My Service" c:\temp\executable.exe  

C:\Users\somebody>sc create

DESCRIPTION:      Creates a service entry in the registry and Service Database. USAGE: sc  create [service name] [binPath= ]  ...    OPTIONS: NOTE: The option name includes the equal sign.        A space is required between the equal sign and the value.   type=          (default = own)   start=          (default = demand)   error=          (default = normal)   binPath=    group=    tag=    depend=    obj=         (default = LocalSystem)   DisplayName=    password=   

Answer by Jacob Seleznev for is there an easy way to make a windows service?


Can you schedule a task? More info here.

Answer by Simon M?Kenzie for is there an easy way to make a windows service?


You can create a startup script and globally apply it to your machines via group policy - just add it via gpedit.msc:

Add startup script via group policy


Fatal error: Call to a member function getElementsByTagName() on a non-object in D:\XAMPP INSTALLASTION\xampp\htdocs\endunpratama9i\www-stackoverflow-info-proses.php on line 72

0 comments:

Post a Comment

Popular Posts

Powered by Blogger.