Re: start with /wait and /b together

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"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



.



Relevant Pages

  • exec or spawning a tcl program using winXP START
    ... fine if I launch the program from a command line e.g. ... However when I try and put this into a spawn command I run into ... while executing ... Any help on changing the Base Priority of a spawned process from ...
    (comp.lang.tcl)
  • Re: BLAME BUSH.
    ... command. ... Getting the job done is priority number one for a leader. ... >>> Bush is not particularly good in emergencies. ... >> Emergencies are really the main priority of the President. ...
    (rec.audio.pro)
  • nice bandwidth usage
    ... There exists the "nice" command which schedules processes with lower CPU ... priority, and the "ionice" command to give processes lower I/O priority. ...
    (comp.os.linux.misc)
  • Re: vms base priority watch
    ... rights to do this early in the morning to get their jobs completed, ... accounting would tell you who might have issued a command? ... I can't think of a way to determine who used privilege to override normal priority assignments. ... If the work is not getting done in the time available, you can try throwing resources at it. ...
    (comp.os.vms)
  • Re: [Solved] startx setting the nice level to 5?
    ... >> the priority of the command by five! ... of course it's increasing the nice value which actually decreases ... Furthermore if I *want* a lower priority I can do it easily myself ... with the nice command. ...
    (Debian-User)