Windows BBS The Place for Microsoft Windows Support! Windows, Support, Help Site

Go Back   Windows BBS > Operating Systems > Windows XP

Windows XP Post your Windows XP related questions here.

Register your FREE account to unlock additional features at WindowsBBS.com
Register
Welcome to WindowsBBS.com
Microsoft Windows Support

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.


Discussion Forums
Operating Systems
Windows 7 Windows 7
Windows Vista Windows Vista
Windows XP Windows XP
Windows Server System Windows Server System
Windows 2000 Windows 2000
Windows 95/98/Me/NT Windows 95/98/Me/NT
Internet & Networking
Networking
Internet Explorer
Microsoft Mail
Firefox, Thunderbird
      & SeaMonkey

General Internet
Security
General Security
Malware and Virus
     Removal

Other
Other Software
Hardware
Test Posts
Community
Introductions
General Discussions
Comments
      & Suggestions

News @ WindowsBBS

Forum Sponsor
 Image

Reply
 
LinkBack Thread Tools
Old 1st December 2008   #1
Member
 
Profile:
Join Date: Nov 2008
Posts: 5
Computer Experience:
Inter
FARAZ Reputation Level


Smile Startup.bat

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:

"C:\WINDOWS\system32\NeroCheck.exe"
"C:\WINDOWS\system32\ctfmon.exe"
"C:\Program Files\Adobe\Acrobat 6.0\Distillr\acrotray.exe"
"C:\Program Files\Common Files\Adobe\Calibration\Adobe Gamma Loader.exe"
"C:\WINDOWS\system32\usrmlnka.exe" RunServices \Device\3cpipe-USRpdA
"C:\WINDOWS\system32\hkcmd.exe"
"C:\Program Files\iTunes\iTunesHelper.exe"
"C:\Program Files\Microsoft Office\Office12\GrooveMonitor.exe"

But when I close the Command.com's black window and RERUN the C:\Test.bat, some more commands are processed and the point of halt comes up at:

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"
"C:\WINDOWS\system32\NeroCheck.exe"
"C:\WINDOWS\system32\ctfmon.exe"
"C:\Program Files\Adobe\Acrobat 6.0\Distillr\acrotray.exe"
"C:\Program Files\Common Files\Adobe\Calibration\Adobe Gamma Loader.exe"
"C:\WINDOWS\system32\usrmlnka.exe" RunServices \Device\3cpipe-USRpdA

Any particular reason and solution for such stops? Thanx in advance!

--
Best Regards,
FARAZ A. QURESHI

FARAZ is offline   Reply With Quote
Didn't find the information you thought to find?
Check out these Similar Threads
Old 1st December 2008   #2
SuperGeek
 
Profile:
Join Date: Dec 2005
Location: New Delhi, India
Posts: 1,573
Computer Experience:
Experienced but ! en
rsinfo Reputation Levelrsinfo Reputation Levelrsinfo Reputation Levelrsinfo Reputation Levelrsinfo Reputation Levelrsinfo Reputation Level

My System

What do you mean by "command window HALTS" ?

Does it freezes or disappears ?

rsinfo is offline   Reply With Quote
Old 1st December 2008   #3
SuperGeek
 
Profile:
Join Date: Jul 2004
Location: 62864
Posts: 3,600
Computer Experience:
Default
surferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Level


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.

They may be typos but it's not to be assumed.

surferdude2 is online now   Reply With Quote
Old 2nd December 2008   #4
Member
 
Profile:
Join Date: Nov 2008
Posts: 5
Computer Experience:
Inter
FARAZ Reputation Level


The black window FREEZES without even showing the C:\ prompt after
C:\Program Files\CyberLink\PowerDVD\PDVDServ.exe

and the batch file doesn't even reach the command:
C:\PROGRA~1\Adobe\ACROBA~1.0\Distillr\acrotray.exe

so considering syntex errors, if any, is out of question I presume!

FARAZ is offline   Reply With Quote
Old 2nd December 2008   #5
SuperGeek
 
Profile:
Join Date: Jul 2004
Location: 62864
Posts: 3,600
Computer Experience:
Default
surferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Level


I meant quotes and not parentheses of course.

I think you may have to change your command lines that pertain to executable application in order to start multiple ones.

Here's how I did a similar batch:

Code:
START "" "C:\Program Files\Microsoft Works\WksWP.exe"
START C:\calendar\CALENDAR.EXE
START "" "C:\Program Files\Microsoft Office\Office\WINWORD.EXE"
START "" "C:\Documents and Settings\Owner\My Documents\Qpw\TIMELINE.WB2"
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.
surferdude2 is online now   Reply With Quote
Old 4th December 2008   #6
Member
 
Profile:
Join Date: Nov 2008
Posts: 5
Computer Experience:
Inter
FARAZ Reputation Level


Thumbs up

Excellent!!!!!!!!!!!!!!
Thanx Guys!!!!!

Quote:
Originally Posted by surferdude2 View Post
I meant quotes and not parentheses of course.

I think you may have to change your command lines that pertain to executable application in order to start multiple ones.

Here's how I did a similar batch:

Code:
START "" "C:\Program Files\Microsoft Works\WksWP.exe"
START C:\calendar\CALENDAR.EXE
START "" "C:\Program Files\Microsoft Office\Office\WINWORD.EXE"
START "" "C:\Documents and Settings\Owner\My Documents\Qpw\TIMELINE.WB2"
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.

FARAZ is offline   Reply With Quote
Old 4th December 2008   #7
Member
 
Profile:
Join Date: Nov 2008
Posts: 5
Computer Experience:
Inter
FARAZ Reputation Level


Thanx SurferDude!
Can't express gratitude in simple words!
Thanx again!

FARAZ is offline   Reply With Quote
Old 4th December 2008   #8
SuperGeek
 
Profile:
Join Date: Jul 2004
Location: 62864
Posts: 3,600
Computer Experience:
Default
surferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Level


Thanks for the update so others may benefit.

All the best,

Dude

surferdude2 is online now   Reply With Quote





Advertisements do not imply our endorsement of the product or service advertised.
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 2002 - 2009 WindowsBBS.com. All rights reserved.
Terms of Use, Legal Information & Privacy Policy
[]