Indexing and other services can be started and ended using the 'net
start <service name>' and 'net stop <service name>' commands to deactivate unnecessary memory hogs before starting a resource-hungry application like Corel Draw. The services can be controlled using the command line tool 'sc', accessible from 'Start I Run I cmd.exe'. Type 'sc/?' at the prompt for an overview of all available options.
To start a service, type 'sc start <service name>', and to end it type 'sc stop <service name>'. It would be wise, however, to stop a service only until your current operation is done and then continue running it again later. The easiest way to do this is to create a batch file. Open a text editor and type the following code:
sc pause <service name> start /w <program path> <program name> sc continue <service name>
IMPORTANT: The <service name> of the command line tool 'sc' is not the same as the common display name of the service. To find the correct <service name> go to 'Start I Settings I Control Panel I Administrative Tools I Services'. Double-click the appropriate service form the list and note the 'Service name' in the following dialog box.
NOTE: The command line tool 'sc' can also be used to discover the current state of your services with the command 'sc query <service name>' while the command 'sc qc <service name>' queries the configuration information. To change the configuration of a service use 'sc config <service name> <option name>=<option value>'. There shouldn't be a space
after the equal sign. Further help on the configuration options is provided by typing 'sc config' without any other parameters.




Reply With Quote
Bookmarks