I would like to know if i could run an application as a service. I have an app that i want to start everytime my pc is turned on. I tried to add it ask a task but it doesn't seem to work really well. If you have any tips for me let me know.
You need two files from the Windows NT server resource kit.
INSTSRV.EXE
SVRANY.EXE
Copy these files to %WINDIR%\system32
then goto start\run and type in this command
Instsrv xyz c:\winnt\system32\srvany.exe
This creates a service called xyz(you can name it anything)
Then goto regedit:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControllSet\Services\xyz
Create a key called Parameters
Open Parameters and create these three string values there:
AppDirectory "c:\xyz" (the path to your program dir)
Application "c:\xyz\xyz.exe" (the path to the app exe)
AppParameters "/???" (only if startup-parameters are needed)
If you don't have the resource kit just email me and I will email them to you. They are very small.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.