PDA

View Full Version : Need Help With Windows Batch File


Jtl5008
10-10-2007, 02:53 AM
I've recently attempted to make my life easier. :)

I am trying to make a batch file that will start the Automatic Updates service as well as the Background Intelligent Transfer Service.

I can make this script fine, BUT I need to change the startup status of service to automatic. I do not want to go in the control panel and change it that way. I want to just run the batch file and have it take care of it for me.

Here is what I have so far:
@echo off

echo --------------------------
echo Enabling Update
echo --------------------------
NET START "Automatic Updates"

echo --------------------------
echo Enabling BITS
echo --------------------------
NET START "Background Intelligent Transfer Service"

echo --------------------------
echo Launching Program
echo --------------------------
"C:\Program Files\Internet Explorer\iexplore.exe"

The reason I am doing this is because I do not have these processes running to increase my system speed. BUT, when I want to check for Windows Updates, these need to be running, as well as set to AUTOMATIC. I am stuck here. I don't know if it's even possible. Hoping someone here can help me or tell me it can't be done. Thanks :cool:

Jtl5008
10-10-2007, 03:02 AM
I figured it out! All I need to do is make the Automatic Updates and Background Intelligence Transfer Service set to Automatic to start with and have another batch file run at windows startup to stop them. Nice little work around. :)