views:

677

answers:

2
+7  A: 

start /wait "Win1" etc.

Dave Costa
Oh excellent, thanks!
Why are you doing all this extra work? there is no need to use start and cmd.exe /c, if scomp is a exe/com/bat, all you need is "call", like: call program param1 param2 etc
Anders
**@Anders** maybe monster needs a new window for a text operation, for debugging purpose.
Jay
+3  A: 

You want to use /wait, see the reference below.

    START

    Start a specified program or command in a separate window.

    Syntax
          START "title" [/Dpath] [options] "command" [parameters]

    Key:
       title      : Text for the CMD window title bar (required)
       path       : Starting directory
       command    : The command, batch file or executable program to run
       parameters : The parameters passed to the command

    Options:
       /MIN       : Minimized
       /MAX       : Maximized
       /WAIT      : Start application and wait for it to terminate
       /LOW       : Use IDLE priority class
       /NORMAL    : Use NORMAL priority class
       /HIGH      : Use HIGH priority class
       /REALTIME  : Use REALTIME priority class

       /B         : Start application without creating a new window. In this case
                    ^C will be ignored - leaving ^Break as the only way to 
                    interrupt the application
       /I         : Ignore any changes to the current environment.

       Options for 16-bit WINDOWS programs only

       /SEPARATE   Start in separate memory space (more robust)
       /SHARED     Start in shared memory space (default)
Mike Curry
Awesome too, thanks alot!