PCSTATS Main Page Follow PCSTATS on Facebook PCSTATS RSS Feed PCSTATS Twitter Feed + Motherboards
+ Videocards
+ Memory
+ Beginners Guides
News & Advanced Search  Feedback?
[X]   Directory of
Guides & Reviews

Beginners Guides
Weekly Newsletter
Archived Newsletters

+70 MORE Beginner GUIDES....  
 
Contact the Suite 66 Advertising Agency
Seagate Backup Plus Slim External USB 3.0 2TB Hard Drive Review

Beginners Guides: Understanding and Tweaking WindowsXP Services

Beginners Guides: Understanding and Tweaking WindowsXP Services - PCSTATS
Abstract: Learn to use the 'Services' young Jedi, for they are powerful and control much of WindowsXP. if you do not, you'll be forced to run programs in the system tray for all eternity!
 90% Rating:   
Filed under: Beginners Guides Published:  Author: 
External Mfg. Website: PCSTATS Jun 21 2006   Mike Dowler  
Home > Reviews > Beginners Guides > PCSTATS

Creating your own services

If you don't mind a little registry editing, you can make almost any Windows executable file into a service very easily. This has the multiple advantages of allowing you to define which account the application will run under, forcing the application to load automatically on startup, allowing you to configure the various recovery options in the service properties tab for the application and just being kind of cool.

To create your own service, you will need the INSTSRV.EXE and SRVANY.EXE programs available from the Windows Server 2003 Toolkit (search Microsoft.com for this file). INSTSRV.EXE allows you to create and remove windows services, while SRVANY.EXE is a 'blank' service starting executable which can be used to run any Windows executable as a service when it is started with INSTSRV.EXE. Download the toolkit and extract it to an easily accessible location like c:\toolkit or the like. Now open a command prompt window by going to 'start\run' and typing 'cmd'.

In the command prompt, navigate to the directory where you placed the resource kit tools. If you need help navigating in the command prompt, see PCSTATS guide here. Once you are in the resource kit directory, type the following: Instsrv (the name you want your service to have) c:\toolkit\srvany.exe

Note that the above command assumes you put the resource kit files into c:\toolkit. You can change the directory if you put it somewhere else. You should see the following message.

If you open the services.msc window now, you'll see that your new service has been created, but we're not quite done yet. Open the registry editor by going to 'start\run' and typing 'regedit.'

In REGEDIT, navigate to HKEY_Local_Machine\SYSTEM\CurrentControlSet\Services\(your service name)\

Now right click on the registry key called (your service name) and select 'new' then 'key.' Name the new key 'Parameters.'

Now double click the Parameters key and right click on the empty space in the right hand pane. Choose 'new' then 'string value.' Name the new value 'Application'

Now repeat the last two steps again, this time naming the string value 'AppDirectory'.

Now double click on 'Application' and give it the location of the executable file you want to run as a service. For example, if you had a program called 'paintme.exe' located in the c:\paintme\ directory, you would type 'c:\paintme\paintme.exe'

< Previous Page © 2017 PCSTATS.com
Please respect the time and effort that went into creating each PCSTATS Beginners Guide, do not illegally copy. Thank you.
Next Page >

 

Contents of Article: PCSTATS
 Pg 1.  Beginners Guides: Understanding and Tweaking WindowsXP Services
 Pg 2.  Which services are running?
 Pg 3.  Getting Information on Specific Services
 Pg 4.  Properties of Services
 Pg 5.  Why do does WinXP need Services?
 Pg 6.  What services should be running?
 Pg 7.  Services to disable for better security and performance
 Pg 8.  — Creating your own services
 Pg 9.  Creating Services Continued

SEARCH PCSTATS 
Use the power of Google to search all of PCSTATS and the PCSTATS Forums. Tell us what you think of this new feature - FEEDBACK?
   11 / 24 / 2017 | 12:57AM
Hardware Sections 


google
 
PCSTATS Network Features Information About Us Contact
FrostyTech
TransmetaZone
BeginnersPC
PCSTATS Newsletter
PCSTATS Forums
ShoppingList Assistance
Tech Glossary
Technology WebSite Listings
PermaLink News
Archived News
Submit News (Review RSS Feed)
Site Map
PCstats Wallpaper
About Us
Employment
Privacy Policy
Advertise on PCSTATS

How's Our Driving?
© Copyright 1999-2017 www.pcstats.com All rights reserved. Privacy policy and Terms of Use.