Windows XPPost your Windows XP related questions here.
Mission Statement
WindowsBBS is an online community dedicated to easily accessible technical support for those using Microsoft operating systems and other Windows software.
Our goal is to become the leading resource for computer users that require assistance with their day-to-day computer usage, including full support for networking PC's, virus & malware removal, system upgrades and general support questions.
In a test startup batch file "C:\Test.bat" I have, after unchecking the relevant services and startup commands from the msconfig, I have listed the following items:
@echo off
Net start "Adobe LM Service"
Net start "Apple Mobile Device"
Net start "Bonjour Service"
Net start "iPod Service"
Net start "McAfee SiteAdvisor Service"
Net start "McAfee Services"
Net start "McAfee Network Agent"
Net start "McAfee Scanner"
Net start "McAfee Proxy Service"
Net start "McAfee Real-time Scanner"
Net start "McAfee SystemGuards"
Net start "Machine Debug Manager"
Net start "Microsoft Office Groove Audit Service"
Net start "McAfee Personal Firewall Service"
Net start "Microsoft Office Diagnostics Service"
Net start "Office Source Engine"
C:\WINDOWS\system32\usrmlnka.exe RunServices \Device\3cpipe-USRpdA
C:\WINDOWS\system32\igfxtray.exe
C:\WINDOWS\system32\hkcmd.exe
"C:\Program Files\Microsoft Office\Office12\GrooveMonitor.exe"
"C:\Program Files\QuickTime\QTTask.exe" -atboottime
"C:\Program Files\iTunes\iTunesHelper.exe"
"C:\Program Files\McAfee.com\Agent\mcagent.exe" /runkey
"C:\Program Files\CyberLink\PowerDVD\PDVDServ.exe"
C:\WINDOWS\system32\NeroCheck.exe
C:\WINDOWS\system32\ctfmon.exe
C:\PROGRA~1\Adobe\ACROBA~1.0\Distillr\acrotray.exe
C:\PROGRA~1\COMMON~1\Adobe\CALIBR~1\ADOBEG~1.EXE
Then, in the "services.msc" I have turned the relevant services to "Manual".
Upon running C:\Test.bat, after services have been successfully loaded, when the commands start, at some points like after:
rem @echo off
Net start "Adobe LM Service"
Net start "Apple Mobile Device"
Net start "Bonjour Service"
Net start "iPod Service"
Net start "McAfee SiteAdvisor Service"
Net start "McAfee Services"
Net start "McAfee Network Agent"
Net start "McAfee Scanner"
Net start "McAfee Proxy Service"
Net start "McAfee Real-time Scanner"
Net start "McAfee SystemGuards"
Net start "Machine Debug Manager"
Net start "Microsoft Office Groove Audit Service"
Net start "McAfee Personal Firewall Service"
Net start "Microsoft Office Diagnostics Service"
Net start "Office Source Engine"
"C:\WINDOWS\system32\igfxtray.exe"
"C:\Program Files\QuickTime\QTTask.exe" -atboottime
"C:\Program Files\McAfee.com\Agent\mcagent.exe" /runkey
"C:\Program Files\CyberLink\PowerDVD\PDVDServ.exe"
the command.com window HALTS! and the following remaining commands are not carried out:
Copy and paste the actual script here so that we can be sure. I see some syntext errors in your posted script (lack of parentheses around paths containing embedded spaces). For example, C:\PROGRA~1\Adobe\ACROBA~1.0\Distillr\acrotray.exe requires such.
As a design feature in XP, opening a program from a batch script without using the START command pauses the batch when the program open and waits for it to close before executing any following script.
The use of the START command and the "" is the key. (include spaces as shown) The "" is necessary IF the command line is enclosed in quotes since the START command has a switch, "title", that tends to confuse the command and it uses your command for a title rather than executing it. Notice that the second line of code script posted above did not require the "" following the START command (although it could be included without any harm).
That applies to Programs and isn't necessary for Services since they don't steal the focus.
Last edited by surferdude2; 3rd December 2008 at 04:35.
As a design feature in XP, opening a program from a batch script without using the START command pauses the batch when the program open and waits for it to close before executing any following script.
The use of the START command and the "" is the key. (include spaces as shown) The "" is necessary IF the command line is enclosed in quotes since the START command has a switch, "title", that tends to confuse the command and it uses your command for a title rather than executing it. Notice that the second line of code script posted above did not require the "" following the START command (although it could be included without any harm).
That applies to Programs and isn't necessary for Services since they don't steal the focus.