Jump to content

System optimizer for playing games


Cyberg0d

Recommended Posts

I guess this is relevant here. I wrote a batch file to shutdown unnecessary processes and free up system resources from idle processes. I use it when playing games and a few others have asked me for it, so I thought I'd post it up for anyone that wants it. Copy the code into a text file. Rename the file taskkill.cmd. Open a CMD prompt and CD to the location you saved the file. Run it as Taskkill -list and it will generate a list of your currently running processes at the bottom of the batch file. Open it and remove any system processes or anything you want to leave running. Afterwards, just run it by double clicking the file or directly from the cmd prompt as taskkill. At any time, you can run it with -list and it will list all running processes, but they have to be filtered manually each time you do so. Only tested on XP systems at the moment.

 

@echo off & setlocal

::  Matt Williamson 
:: 	 rev1  - 6/13/06

:: This batch file will kill all process listed below the Data section. 
:: If no Data section exists, run with -list option and it will be created
:: based upon the currently running processes on your system. 
:: after creating the list, be sure to filter it of system processes so the
:: list only contains those that you want killed. I've filtered out some
:: system processes already. 

if "%1"=="-list" (
for /f "delims=[]" %%a in ('type %~f0 ^|find /n "[Data]" ') do set bdata=%%a
if "%bdata%"=="" echo.>>%~f0&echo.>>%~f0&echo.[Data] >> %~f0
for /F %%a in ('tasklist /FI "IMAGENAME ne system*" /FO TABLE /NH') do (echo.%%a >> %~f0)
goto :eof
)

for /f "delims=[]" %%i in ('type %~f0 ^|find /n "[Data]" ') do set yds=%%i 
for /f "usebackq skip=%yds%" %%a in ("%~f0") do (taskkill /F /IM %%a /T)
::free up processing time from any idle processes
Rundll32.exe advapi32.dll,ProcessIdleTasks
goto :eof

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.