Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to creat a service 2

Status
Not open for further replies.

coutoj

IS-IT--Management
Jun 14, 2001
39
CA
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.

Thanks,
Jason
 
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.

BobSchleicher
mailto:bob.schleicher@flotech.net
 
Have you tried adding a shortcut to the app to your Start menu | Programs | Startup folder? That should work.
Mike
 
If you don't log in to the PC then the shortcut won't run.
That's why you need to register it as a service so it will run on load not log in.


BobSchleicher

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top