Computing.Net > Forums > Windows XP > need help with a batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

need help with a batch file

Reply to Message Icon

Name: joshwill80
Date: October 9, 2005 at 14:43:58 Pacific
OS: WIndows XP Home
CPU/Ram: P4 2.0ghz, 768 RAM
Comment:

i just need some help with a batch file i made. it's used to start up some processes that i previously terminated. here is the script for it:

sc start acrsch2svc
sc start pdsched
sc start adobeactivefilemonitor4.0
sc start avg7alrt
sc start avg7updsvc
"C:\Program Files\Grisoft\AVG Free\avgemc.exe"
"C:\Program Files\Common Files\Acronis\Schedule2\schedhlp.exe"
"C:\Program Files\Acronis\TrueImage\TrueImageMonitor.exe"
"C:\Program Files\Grisoft\AVG Free\avgcc.exe"
"C:\Program Files\Adobe\Photoshop Elements 4.0\apdproxy.exe"
"C:\Program Files\Ad Muncher\AdMunch.exe"
pause

the only problem i have is that whenever it starts one of the processes in quotes it pauses. i then have to run the batch again to start the next process in quotes. so i have to run it like 6 times in a row to get it to start all the processes. i was wondering if there was a way to have it all run in one go? maybe a command i need to use to tell it to keep running, instead of pausing?



Sponsored Link
Ads by Google

Response Number 1
Name: joshwill80
Date: October 9, 2005 at 16:08:16 Pacific
Reply:

ok, the problem is related to the quotes. if you don't use quotes then the start command will launch the application correctly. if you do use quotes then it just launches a new cmd window with the title of whatever you put in quotes. problem is i have to use quotes in my entries because they have spaces in them.

or, if you just type in the path without the start cmd like i did above, then it launches correctly, but thats when it pauses. is there anyway around this?


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: need help with a batch file

Need help creating a batch file www.computing.net/answers/windows-xp/need-help-creating-a-batch-file/172372.html

text line removal with a batch file www.computing.net/answers/windows-xp/text-line-removal-with-a-batch-file/153490.html

WinXP Batch File Loop? www.computing.net/answers/windows-xp/winxp-batch-file-loop/125724.html