General discussion

  • Creator
    Topic
  • #2093254

    Adding a command as a service.

    Locked

    by ddbaker ·

    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?

All Comments

  • Author
    Replies
    • #3869917

      Adding a command as a service.

      by syscokid ·

      In reply to Adding a command as a service.

      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.

    • #3613056

      Adding a command as a service.

      by ddbaker ·

      In reply to Adding a command as a service.

      This question was closed by the author

Viewing 1 reply thread