gaming/optimising batch files

cybermaniac

New member
hey guyz

try this out:

if u want to play a game and want a save a bit of ram and processor power, try this:

make a batch file called stopservices.bat and put this into it:

Code:
:: A "batch file" that stops unnecessary services to maximize performance of an XP pc while playing internet games.

::

:: ***Note*** Some services may or may not be necessary for your particualar configuration.

::

:: For a detailed descriptions of XP services that may be stopped visit [url]http://www.tweakhound.com/xp/xptweaks/supertweaks6.htm[/url]

::

:: The "::" leave room for definitions of each command.

:: Change directory to root.

cd\

:: Turns off excessive display while the batch file runs.

echo off

echo .

echo .

echo .

echo ..

echo ...

echo          Stopping Services

echo ...

echo ..

echo .

echo .

echo .

:: Enables ClipBook Viewer to store information and share it with remote computers. If the service is stopped, ClipBook Viewer will not be able to share information with remote computers. If this service is disabled, any services that explicitly depend on it will fail to start.

net stop ClipSrv

:: System Event Notification - Tracks system events such as Windows logon, network, and power events.  Notifies COM+ Event System subscribers of these events.

net stop SENS

:: Com+ Event System - Supports System Event Notification Service (SENS), which provides automatic distribution of events to subscribing Component Object Model (COM) components. If the service is stopped, SENS will close and will not be able to provide logon and logoff notifications. If this service is disabled, any services that explicitly depend on it will fail to start.

net stop EventSystem

:: Computer Browser - Maintains an updated list of computers on the network and supplies this list to computers designated as browsers. If this service is stopped, this list will not be updated or maintained. If this service is disabled, any services that explicitly depend on it will fail to start.

net stop Browser

:: Cryptographic Services - Provides three management services: Catalog Database Service, which confirms the signatures of Windows files; Protected Root Service, which adds and removes Trusted Root Certification Authority certificates from this computer; and Key Service, which helps enroll this computer for certificates. If this service is stopped, these management services will not function properly. If this service is disabled, any services that explicitly depend on it will fail to start.

net stop CryptSvc

:: Help and Support - Enables Help and Support Center to run on this computer. If this service is stopped, Help and Support Center will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start.

net stop helpsvc

:: Indexing Service - Indexes contents and properties of files on local and remote computers; provides rapid access to files through flexible querying language.

net stop cisvc

:: IPSEC Services - Manages IP security policy and starts the ISAKMP/Oakley (IKE) and the IP security driver.

net stop PolicyAgent

:: IPv6 Internet Connection Firewall - Provides intrusion prevention service for a home or small office network.

:: net stop ip6FwHlp

:: Logical Disk Manager - Detects and monitors new hard disk drives and sends disk volume information to Logical Disk Manager Administrative Service for configuration. If this service is stopped, dynamic disk status and configuration information may become out of date. If this service is disabled, any services that explicitly depend on it will fail to start.

net stop dmserver

:: Net Logon - Supports pass-through authentication of account logon events for computers in a domain.

:: net stop netlogon

:: Server - Supports file, print, and named-pipe sharing over the network for this computer. If this service is stopped, these functions will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start.

net stop lanmanserver

:: System Restore Service - Performs system restore functions. To stop service, turn off System Restore from the System Restore tab in My Computer->Properties

net stop srservice

:: Task Scheduler - Enables a user to configure and schedule automated tasks on this computer. If this service is stopped, these tasks will not be run at their scheduled times. If this service is disabled, any services that explicitly depend on it will fail to start.

net stop schedule

:: Themes - Provides user experience theme management.

net stop Themes

:: Universal Plug and Play Device Host - Provides support to host Universal Plug and Play devices.

net stop upnphost

:: Workstation - Creates and maintains client network connections to remote servers. If this service is stopped, these connections will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start.

net stop Workstation

:: Event Log - Enables event log messages issued by Windows-based programs and components to be viewed in Event Viewer. This service cannot be stopped.

net stop Eventlog

:: Plug n Play - Enables a computer to recognize and adapt to hardware changes with little or no user input. Stopping or disabling this service will result in system instability.

net stop PlugPlay

echo .

echo .

echo .

echo ..

echo ...

echo          Services Stopped

echo ...

echo ..

echo .

echo .

echo .

exit

and then make a batch file called startservices.bat and all this does it start the services that u stopped earlier:

Code:
:: A "batch file" that stops unnecessary services to maximize performance of an XP pc while playing internet games.

::

:: ***Note*** Some services may or may not be necessary for your particualar configuration.

::

:: For a detailed descriptions of XP services that may be stopped visit [url]http://www.tweakhound.com/xp/xptweaks/supertweaks6.htm[/url]

::

:: The "::" comments out lines so that they are not run.

:: Change directory to root.

cd\

:: Turns off excessive display of from the batch file.

echo off

echo .

echo .

echo .

echo ..

echo ...

echo          Starting Services

echo ...

echo ..

echo .

echo .

echo .

net start wuauserv

:: System Event Notification - Tracks system events such as Windows logon, network, and power events.  Notifies COM+ Event System subscribers of these events.

net start SENS

:: Com+ Event System - Supports System Event Notification Service (SENS), which provides automatic distribution of events to subscribing Component Object Model (COM) components. If the service is stopped, SENS will close and will not be able to provide logon and logoff notifications. If this service is disabled, any services that explicitly depend on it will fail to start.

net start EventSystem

:: Enables ClipBook Viewer to store information and share it with remote computers. If the service is stopped, ClipBook Viewer will not be able to share information with remote computers. If this service is disabled, any services that explicitly depend on it will fail to start.

net start ClipSrv

:: Computer Browser - Maintains an updated list of computers on the network and supplies this list to computers designated as browsers. If this service is stopped, this list will not be updated or maintained. If this service is disabled, any services that explicitly depend on it will fail to start.

net start Browser

:: Cryptographic Services - Provides three management services: Catalog Database Service, which confirms the signatures of Windows files; Protected Root Service, which adds and removes Trusted Root Certification Authority certificates from this computer; and Key Service, which helps enroll this computer for certificates. If this service is stopped, these management services will not function properly. If this service is disabled, any services that explicitly depend on it will fail to start.

net start CryptSvc

:: Help and Support - Enables Help and Support Center to run on this computer. If this service is stopped, Help and Support Center will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start.

net start helpsvc

:: IPSEC Services - Manages IP security policy and starts the ISAKMP/Oakley (IKE) and the IP security driver.

net start PolicyAgent

:: IPv6 Internet Connection Firewall - Provides intrusion prevention service for a home or small office network.

:: net start ip6FwHlp

:: Logical Disk Manager - Detects and monitors new hard disk drives and sends disk volume information to Logical Disk Manager Administrative Service for configuration. If this service is stopped, dynamic disk status and configuration information may become out of date. If this service is disabled, any services that explicitly depend on it will fail to start.

net start dmserver

:: Net Logon - Supports pass-through authentication of account logon events for computers in a domain.

:: net start netlogon

:: Server - Supports file, print, and named-pipe sharing over the network for this computer. If this service is stopped, these functions will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start.

net start lanmanserver

:: System Restore Service - Performs system restore functions. To stop service, turn off System Restore from the System Restore tab in My Computer->Properties

net start srservice

net start TermService

:: Themes - Provides user experience theme management.

net start Themes

:: Universal Plug and Play Device Host - Provides support to host Universal Plug and Play devices.

net start upnphost

:: Workstation - Creates and maintains client network connections to remote servers. If this service is stopped, these connections will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start.

net start Workstation

:: Event Log - Enables event log messages issued by Windows-based programs and components to be viewed in Event Viewer. This service cannot be stopped.

net start Eventlog

:: Plug n Play - Enables a computer to recognize and adapt to hardware changes with little or no user input. Stopping or disabling this service will result in system instability.

net start PlugPlay

echo .

echo .

echo .

echo ..

echo ...

echo          Services Started

echo ...

echo ..

echo .

echo .

echo .

exit

hope that helps sum1........feel free to add to this post with helpful services to stop for gaming and/or other things/commands to stop/start other things
 
OK THB the amount of power this will free up is negliable .. on a machine that is Folding as a service this WILL kill the folding abruptly and hence resort to the previous checkpoint (nefing to 2+ hours lost production).

id suggest creating a 3rd batch file per program consisting of

Code:
stopservices.bat

"Game EXE location"

startservices.bat

this will start each of the above processes in sequence

i.e. starts stopservices.bat which when is finished will start the game then when u exit the game this will run startservices.bat

nb: to run multiple programs @ once using a batchfile add the start prefix

eg

Code:
start winword.exe

start  mediaplayer.exe
 
hmmm, im sure that would just stop service, open the game then start services, without waiting for you to quite the game.
 
no it doesnt ... batch files are a dos thing sequential

to make them run programs simultaneously u have to add the Start prefix

try

Code:
"target audio file"

notepad

see ma point?
 
I'm with dave on this one. After the program has loaded i'd think it would move on to the next appication as its not 'pure dos', and its not intelligent enough to detect the termination of the application.

I'll give it a test tho.
 
well i used a batch file to run saac (a san andreas win32 control interface) and the game , using a batch w/o a start command ran saac but didnt run the game until the saac prog was terminated
 
Back
Top