PDA

View Full Version : batch file help to stop services/apps



dibbly
11-11-2004, 12:59 PM
hi all,

well i have just entered the realm of gaming!!! only thing is i aint getting alot of work done, but having a heap of fun!! and plenty of frustrations !!

anyway, I am now back to playing on my laptop after using a p4 1gig monster for a week or two (ooooh i want one!!!).
instead of having to close down all my services and firewalls an things manually, i thought i'd give batch files a go using the "netstart" command. Stopping services doesnt seem to be a problem, but i cannot get it to shut down AVG control centre or my sygate personal firewall.
does anyone know what syntax ??? i should be using???do i need to add ".exe" at the end of the programme name??? i have tried various ways nothing seems to work.....any ideas???

also can someone tell me if the following is poss???
once i click on my game to open it up, can i have a batch file that will stop app's and serv's, s/saver etc and then launch the game????

thanks dudes
dibbly

Chilling_Silence
11-11-2004, 01:13 PM
Try:
net service messenger stop

And 1Ghz? Just wait til you try something 3x that speed - Video Manipulation rocks in comparison ;-)

agent
11-11-2004, 01:16 PM
Well, assuming you've got Windows XP (or 2000), right-click on the My Computer desktop icon and select 'Manage' (you'll need to have administrative privileges).

Expand the 'Services...' group down the bottom of the groups on the left, then select the Services section itself. You should see a list of every service installed on your computer.

Your firewall and virus scanner should both be in there somewhere, all you need to do then is double-click on their entries and find out the name of the service. Then use "net stop service name" to stop the service.

Here are several articles about disabling system services that aren't necessary, but take heed of warnings - you could seriously inhibit your OS from working:
http://riki-lb1.vet.ohio-state.edu/mqlin/computec/software/win2000tips/Disable_Services.htm
[/url]
[url=http://www.theregister.co.uk/2004/09/02/winxpsp2_security_review/] (http://www.overclockersclub.com/guides/windows_xp_services.php)

Making a batch file to stop services while you are gaming is easy enough, just make an entry for every service you want to stop on a new line. However, getting a game to run a batch file for you is near impossible. It doesn't take much effort to run them separately anyway (short of using the batch file to run the game and then start every stopped service when the game exits - which is far more feasible, but only if you have one game).

agent
11-11-2004, 01:20 PM
I mungled my URLs, so here they are again:
http://riki-lb1.vet.ohio-state.edu/mqlin/computecsoftware/win2000tips/Disable_Services.htm
http://www.overclockersclub.com/guides/windows_xpservices.php
http://www.theregister.co.uk/2004/09/02/winxpsp2_security_review/

dibbly
11-11-2004, 02:03 PM
thanks agent that worked wonderfully - have been using blackviper site as a guide to the services and tried the hardware profile thing but hate having to reboot everytime I want to play...so thats when i thought a batch file could be handy!!.
Now, I really want to use a batch file to: stop the services etc and then [perhaps another file to start the game....i know its only a matter of a few clicks but it means that i can be doing something else while the services are stopping and the game is loading up...with my current system that can take a good 5 mins of my lunch break!!!! thats 10mins all up!!!! :)
Is there anyway i can do this???? maybe another method other than batch files???
cheers

dibbly
11-11-2004, 02:07 PM
sorry chill. p4 3.2 with gig of ram.....com[pared to what i had been using mate, this rocked for me....but i guess anything 3x would be amazing, id love to give that a whirl....dont happen to live in chch do u chill???????

agent
11-11-2004, 07:08 PM
Well, aside from delving into application programming yourself, you're quite restricted (maybe Task Scheduler?!).

Your batch file could go like:

net stop messenger
net stop w3svc
net stop server
C:\Program Files\EA\Battlefield\bf1942.exe
net start messenger
net start w3svc
net start server

That does the whole lot for you, including starting and stopping services, but you're restricted to launching one game with it (and it was an example, anyway). Otherwise you could develop a launcher application (a local webpage might also work) where you select what game to play.

Whatever you do, the batch file would mean that it wouldn't start the services again until the game application had closed. I'm not sure if making your own application would do this, but it's a little past the scope of making your games run faster.

If you really wanted to try something desperately, and you run Windows 95/98/ME, investigate GameOS GE (http://www.voodoofiles.com/3435), a replacement shell that is supposed to free up resources for games.