Re: start with /wait and /b together
- From: "billious" <billious_1954@xxxxxxxxxxx>
- Date: Thu, 5 Oct 2006 00:06:27 +0800
"jan_bar" <nospam@xxxxxxxxxxxxx> wrote in message
news:OE$Z8a85GHA.1248@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I want to start command line tool from a batch, keep the same command
window
and wait for it at the same time. Sample:
start "test" /low /wait /b "path\to\some\command\line\tool.exe"
The problem is, that /wait and /b doesn't work together. When the /b is
specified, the /wait is ignored - and any Ctrl-C will nto reach the
running
tool.exe. How can I solve this?
In fact, I just want to start the tool.exe with lower priority, start /low
seems to be the cheapest way.
Thanks, Jan
So what you would want to do is
* set lower priority
* execute TOOL
* restore original priority
the problem being that a tool to set the priority from the command line
isn't supplied by Uncle Bill, and isn't an option in TASKMANAGER which is
dumbly clicky-clicky?
* beyondlogic.org has a freeware program that is claimed set priority of a
process. Google "command line change task priority"
-------------------
Perhaps you could split the batch into two, as the last command of the first
half "start" a new batchfile with LOW priority, containing just two lines:
TOOL
start /originalpriority secondpartoforiginalbatchfile
.
- References:
- start with /wait and /b together
- From: jan_bar
- start with /wait and /b together
- Prev by Date: Re: CMDprompt date format issue
- Next by Date: Re: start with /wait and /b together
- Previous by thread: start with /wait and /b together
- Next by thread: Re: start with /wait and /b together
- Index(es):
Relevant Pages
|