Discussion Locked

Adding a command as a service.

0 helpful
5 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?

5 replies

by duskos

You may try command from NT Resource Kit.

Srvany.exe

Applications as Services Utility
With Srvany, you can configure any Windows application so that it runs as a service. 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 handle requests even when nobody is logged on to the server
an application can run with a logon account different from that of the current user

Note
Even when started as services, some applications terminate when the user logs off. This happens if the applications do not ignore the WM_ENDSESSION message (or CTRL_LOGOFF_EVENT).

Srvany works best with 32-bit applications written for Windows NT. You can use this tool to start 16-bit Windows applications as services, but some 16-bit applications are not able to keep running after a user logs off from the computer.

Note
All Srvany services should be disabled when installing or upgrading Windows NT Server, Windows NT Workstation, or applications.

by ajdelo

If you can get a copy of Norton AntiVirus 2000, you can run the batch file from it's task scheduler.

This discussion is closed to new replies.