• Home
  • Reviews
  • Articles
  • News
  • Tools
  • GamingHeaven
  • Forums
  • Network
 

Go Back   DriverHeaven.net > Forums > Software / Tools > Windows XP / 2000 / NT / 9x Forum

Notices

Reply
 
LinkBack Thread Tools
Old Jul 10, 2003, 01:41 PM   #1
BANNED
 
Join Date: Jul 2002
Location: Indiana , USA
Posts: 2,677
Rep Power: 0
Sourcer_2002 is on a distinguished road

making something a service?

Ok i have an .exe that runs in the command prompt at all time and if i close then the of course the exe dies....is there to make windows run it as a service or behind my back?
Sourcer_2002 is offline   Reply With Quote


Old Jul 10, 2003, 05:09 PM   #2
Member
 
Join Date: Mar 2003
Posts: 5,989
Rep Power: 49
PangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the rough

Ok thats good question..

if you like to use easy way, you can use 3rd party program such as.. AppToService ,FireDaemon etc. ...
but this kind of program is usually expensive.

and next one would be.. using 2 command-line tools from windows 2K..
i don't see any "install service" tools included in XP...
so i would use 2 command-line tools from windows 2K..
to install the service on windows XP..the 2 tools are... "srvany.exe" and "instsrv.exe"
..you can find both files in windows 2K CD or from internet.
pls let me know if you like to use this way!
PangingJr is offline   Reply With Quote
Old Jul 10, 2003, 05:48 PM   #3
DriverHeaven Junior Member
 
Join Date: Jun 2002
Location: In The Great White North
Posts: 21
Rep Power: 0
boardboyd is on a distinguished road

Check out here and they should have alink on how to run SETI@Home as a service. It should tell you everything you need to know to get something to run as a service
boardboyd is offline   Reply With Quote
Old Jul 11, 2003, 04:03 AM   #4
Member
 
Join Date: Mar 2003
Posts: 5,989
Rep Power: 49
PangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the rough

okay i don't really want you to pay anything when we can do it for free..
i'm not sure that will be any other ways easier..
But this should set any apps to run as a services in windows XP!

after you have the 2 files ..."srvany.exe" and "instsrv.exe" ...there should be avail to D/L from internet if you don't have the 2K CD.
copy or move both files to "system32" folder.

open CMD and enter following command.. press enter after that.
(ABC is for an example, you'll need to modify it)

instsrv.exe ABC c:\windows\system32\srvany.exe

you should see the below..
----------------------------------

CreateService SUCCESS at creating:

ABC

You must now go to the Registry and the Services applet in the
Control Panel and edit them as per the instructions.

-------------------------------------
close CMD windows.

next step..
at Run dialog box, type regedit and enter.
navigate to HKLM\SYSTEM\CurrentControlSet\Services
at under "Services" there should be a new key named...."ABC"
(you should also see a key named "Security"
that kay was auto created by windows)
at "ABC" ,add key named "Parameters"
also add following value to "Parameters"..
..."Application", data type REG_SZ, with value set to full path to "ABC.exe".

at this point, if you are not sure what todo with registry .. i've made a reg key below so it'll be easy for you to add all values.

modify it and make a .reg file, import it into registry..
-----------------------------

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\ABC\Parameters]
"Application"="C:\\Program Files\\ABC\\ABC.exe"

----------------------------

next go to MMC "Services", set the services to start as "Manual"
reboot your computer.

now, to start ABC services, type following command in Run box and enter..
Sc.exe start ABC

(Sc.exe is already included in XP)

to see if it works or not..
hit ctrl+shift+esc, in "Windows Task Manager" you will see the ABC rus as a service... also in MMC "Services" you should see the services status listing as "Started"


i hope its what you need. good luck!
PangingJr is offline   Reply With Quote
 

 
Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
vBulletin implementation by Craig '5320' Humphreys

All times are GMT -5. The time now is 08:32 PM. Copyright ©2008 HeavenMedia.net