Techie's Tools Home

Vista Game Launching Script

Current Version: .42d
Get The Vista Game Launching Script

This handy little Windows script will kill all but the necessary services and processes in Vista, leaving you with the extra resources needed to run today's games.

Run it via an elevated command prompt with the command "cscript vgl.vbs" (Vista Orb-->Search: "cmd"-->Right Click cmd.exe-->"Run as administrator").

What it does:

  • It will make two loops to kill all the dependant services and then one pass to kill all the parent services (ignoring any services included in the 'arrServicesToKeep' array).
  • Next it will kill all running processes including Explorer.exe (ignoring any services included in the 'arrProcessesToKeep' array).
  • You will then be presented with a prompt to either run one of the predefined games, or you can type in a full path to the program you want to run.
No settings are changed, so at any time you can simply reboot to restore the system to exactly how it was before the script was run! No worry of crashes making things "stick". :)

Edit the script to your liking, as you may want to add personal services and processes you want to keep, as well as change the predefined list of games (available in the form of a 2D array -- "Display name","path to executable").

Notes of interest:

  • Networking is left intact for network gaming.
  • Task Manager is ignored while killing processes, so you can watch the progress/outcome of the script.
  • The arrays are NOT dynamic, if you add/remove something, ensure the Dim statement reflects the new size correctly.

Get It Now!

Comments

techie007
04 Jan 2008, 18:09
Changes:
(Dec. '07)
.42 - Release
.42a - Ensured varible cleansing in loop (avoids strAppPath double-up)
- Added some error checking
.42b - Rearranged and massaged code for readability.
.42c - Split ObjShell for the separate functions (prevents loss when picking another game).
techie007
12 Jan 2008, 14:35
Changes
(Jan. '08)
.42d - Added a 4th game to the pick list.
- Haven't had any further problems or complaints; .42d released. :)
ReS
05 Jan 2009, 13:41
it dont seem i can play wow with this script, how does i do it so i can make internet work for my games? cause i also play CS 1.6, CZ and CS Source
techie007
10 Jan 2009, 21:30
You'll want to make sure that you add any wireless or other network client services to the exclusions array ("Services to keep").

Currently there are 40 entires in that list so if you add another change the "Dim arrServicesToKeep(40)" to "Dim arrServicesToKeep(41)".

Hope that helps.
ReS
10 Jan 2009, 22:04
well i found out why, it was cause i use a other languge then english so i had to rename then to the currect ones.

nice idea works well, but my laptop still overheat, so i think its a hardware problem, never the less great sript you have made :)
techie007
10 Jan 2009, 23:11
Thanks for the kind words. :)

If your notebook is overheating the odds are the heatsink is plugged (if the fan hasn't failed, and is spinning). Buy a can of air (like "Dust-Off") and blow it out, fixes 98% of over-heating notebooks. ;)
gigabytexxl
12 Sep 2009, 14:48
Hey i tried running this script in vista ultimate but as the script ran i got access denied error, i checked the permission levels and they look ok but am i missing something here? i cant use the "run as command" when i hold shift and right click, how do i get around the administrator level privileges to shut these services down?
techie007
13 Sep 2009, 19:10
Like it says above:

Run it via an elevated command prompt with the command "cscript vgl.vbs" (Vista Orb-->Search: "cmd"-->Right Click cmd.exe-->"Run as administrator").

If that doesn't work, then you probably need to ensure your user account is an Administrator.
gigabytexxl
13 Sep 2009, 22:04
i found a workaround. Disable USER ACCOUNT CONTROL in the user accounts in vista. then run the script and it works perfectly.!!! got 30 fps extra just by running this, excellent work and thanks for the quick reply!!!
*Name:
Email:
Notify me about new comments on this page
Hide my email
*Text:
 
*Answer:
 
All content ©2009 Techie's Tools
Techie's Tools Home Page