Run A Command At Low Priority - Start /Wait Doesn't Work?

On WinXP SP3 I want to run a couple of ROBOCOPY.EXE commands one after the other at low priority in a CMD script. If I use the START command to set the priority like this

START "ROBO C" /WAIT /LOW /B ROBOCOPY.EXE C:\ H:\ROBO\C /E /Z /NP /PURGE /R:0 /W:0
START "ROBO D" /WAIT /LOW /B ROBOCOPY.EXE D:\ H:\ROBO\D /E /Z /NP /PURGE /R:0 /W:0

then the ROBOCOPYs run concurrently despite the /WAIT option. Does anyone know either (a) why my /WAIT option doesn't work and how to fix it or (b) another way to run the ROBOCOPY commands at low priority?

Thanks in advance....
LVL 1
jeff1946Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve KnightIT ConsultancyCommented:
I find this happens if you use the /B option.  Take that off and it works as expected.

Steve
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jeff1946Author Commented:
Steve,

Thanks for your quick and effective answer. That certainly seems to fix the problem, although it litters my console with extra Command-Prompt windows. I hope they go away when I run the script as a scheduled task!

Bonus question: Is there any other way to run a command at reduced priority?
0
Steve KnightIT ConsultancyCommented:
Yes, it got me the first time I used it!  If you want them to run concurrently any reason why you don't just add them to a batch file btw then START that, i.e.

START /MIN /WAIT /LOW cmd /c yourbatch.cmd

@echo off
REM yourbatch.cmd
ROBOCOPY.EXE C:\ H:\ROBO\C /E /Z /NP /PURGE /R:0 /W:0
ROBOCOPY.EXE D:\ H:\ROBO\D /E /Z /NP /PURGE /R:0 /W:0

I don't know another way offhand, always use START, sorry.

Thanks for the points etc.

Steve
0
jeff1946Author Commented:
Steve,

I didn't think of that, but it's a much more elegant solution -- thanks!

Jeff
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.