Discussion Locked

Adding a command as a service.

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am starting this service "c:\winnt\system32\rshd.exe -r" from a batch file that is in the administrators startup folder. Is there a way to make a command run as a service so that it will continue to function while no one is loged into the server?

3 replies

by syscokid

Yes, you can use SRVANY.EXE, which comes with the NT Resource Kit. This is from the documentation:

You can use the Srvany utility to run Windows NT applications as services, with the following benefits.
 When applications are run as services, they are not closed during logoff, so users do not need to restart them each time they log on.
 Server applications can service requests even when no user is logged on.
 Applications can run and perform tasks specific to a logon account that is different from the user who is currently logged on.

This discussion is closed to new replies.