Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Overclock.net Forum > FAQs

 
 
LinkBack Thread Tools
Old 09-22-06   #1 (permalink)
Programmer
 
Msk2005's Avatar
 
amd nvidia

Join Date: Nov 2005
Location: tehran
Posts: 402

Rep: 21 Msk2005 is acknowledged by some
Unique Rep: 17
FAQs Submitted: 2
Trader Rating: 0
Default How to: Run a program as service

yesterday I asked about how to run a program as service , someone said I can't do this , and there was no new answer . I knew services are in Registry Editor , so I went to Registry Editor And found ervices after 30 minutes

1. open run commander , write "regedit" and press enter
2. browse here : HKEY_LOCAL_MACHINE -> SYSTEM -> ControlSet001 -> Services
3. Right Click on Services , in the list goto : New -> Key
4. Create Name for the service you are trying to make
5. In the folder , create new string value . right click on the right space and goto : New -> String Value . Name This Value "DisplayName" , right click on it and click "Modify" In The list . In Value Data , write The service name . this name will be show in Services in Administrative Tools
6. create new string value Again , Name it "ObjectName" . modify it's value to "LocalSystem"
7. create an Expandable String Value , it's available on : Right Click -> New -> Expandable String Value . Name It "ImagePath" , set it's value to program destination . like this : "C:\Program Files\Program Company\Program Name\bin\program.exe"
8. create new DWORD value , name it "Start" , it's value is : 2
9. create new DWORD value and name it "Type" , value should be 16 , 0*00000010(16)
10. create new key in service key , name it "Enum"
11. add this values in Enum key :
String Value , name : "0" , Data : "Root:\LEGACY_servicename"
DWORD Value , name : "Count" , value : 1
DWORD Value , name : "NextInstance" , value : 1

it's complete , just a note , if you want to see the task on Task Manager , Add "\0000" in "0" string value at Enum key after servicename
__________________
System: My System
CPU
XP 2500+ barton
Motherboard
Gigabyte GA-7VAXP Ultra
Memory
ddr266 512MB
Graphics Card
fx5200 278/378
Hard Drive
maxtor 160GB IDE
Sound Card
AC'97
Power Supply
green power 290 (450peak)
Case
persian brand
OS
Vista Ultimate
Monitor
CRT F700P
Msk2005 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 04:33 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.11494 seconds with 8 queries