Install Windows 2000 Resource Kit…

Run the following from a Dos prompt:

instsrv yourservice_name “c:\program Files\Resource Kit\srvany.exe”  ( srvany.exe is included in the Resource kit installation )

Now go to services and find yourservice_name choose Properties In the Description type “yourservice_name description…”

Choose logon mode, and set an account to it for example “Administrator”

Click Ok

Type  Regedit in the run input found in the startup

Find the registry entry in the registry edit window

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\yourservice_name

Right click  on yourservice_name> Add Key with name as Parameters,

Right click  on Parameters> Add Key with name as Application and values as c:\yourservice_name.bat   ( depending on where you have kept your bat file)

Right click  on Parameters> Add Key with name as AppDirectory and values as c:\ ( depending on where you have kept your bat file)

Advertisements