Sure you can. Where did you come up with that???
That's what instsrv.exe from the windows resource kit is for, the only
problem is I couldn't get it to work with long filenames.
In case anyone else wants to know, check out service pilot from nicoware. It
will let you run any program as a service and it worked great with the
D-link media server. No more logging on!!
> To run as a service a program must meet special requirements. You can't
> just run any program as a service.
>
> Sorry,
Sounds like a cool toy, but I can easily imagine programs that wouldn't
respond well to not being able to display any UI or wouldn't run correctly
with the security limitations placed on the accounts most often used to run
services.
I "came up with that" because I know that services have some additional entry
points that arent present in standard windows .exe's. The thing that runs as
a service MUST have these entry points. I'm going to guess that the tool
from the resource kit actually loads as the service and then loads the
desired program, since you can't add the required entry points later.
Hey, if it works, it works! More power to ya! I'm glad to be wrong!

Signature
Alan Ludwig
Software Design Engineer
Windows Media Devices Group
Microsoft Corp.
This posting is provided "AS IS" with no warranties, and confers no rights.
Chris H - 12 May 2005 20:58 GMT
Your Right on that , I use it at work to run MRTG on the routers and
switches. It runs as a service and you configure it to call whatever process
you want running. The only downside is if you want to shut the service down,
it doesn't end the process, only the service. You often have to use pkill
(or an equivalent) to end the process which isn't particularly nice way to
end some programs as they don't go through their shutdown routines. It's
very good if that doesn't matter though.
> Sounds like a cool toy, but I can easily imagine programs that wouldn't
> respond well to not being able to display any UI or wouldn't run correctly
[quoted text clipped - 8 lines]
>
> Hey, if it works, it works! More power to ya! I'm glad to be wrong!