how to create a windows service
(instsrv.exe and srvany.exe utilities come up with MS Server toolkit or any 3rd party application)
run this command from a DOS prompt:
instsrv {servicename} "F:\Hyperion\products\Foundation\workspace\bin\srvany.exe"
then click Start->Run type Regedit -> OK
find the
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\{servicename}"
Right click "New->Key" type "Parameters" then OK.
Under "Parameters" key right click "New->String Value" type "Application" as the name
Then right click to "Application"->Modify. Edit "Value data" field as the exact directory of your batch file.
Click OK and restart the server.
run this command from a DOS prompt:
instsrv {servicename} "F:\Hyperion\products\Foundation\workspace\bin\srvany.exe"
then click Start->Run type Regedit -> OK
find the
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\{servicename}"
Right click "New->Key" type "Parameters" then OK.
Under "Parameters" key right click "New->String Value" type "Application" as the name
Then right click to "Application"->Modify. Edit "Value data" field as the exact directory of your batch file.
Click OK and restart the server.
Yorumlar