Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
techwiki:dos [2019/04/24 00:26]
ying [system operation]
techwiki:dos [2019/04/24 00:34] (current)
ying [system operation]
Line 71: Line 71:
     * stream 1 is the standard input/​output stream, 2 is the standard error stream     * stream 1 is the standard input/​output stream, 2 is the standard error stream
   * 2> nul, means mute the 2nd output value. only catch 1st output result   * 2> nul, means mute the 2nd output value. only catch 1st output result
 +
 +
 +===== start a process =====
 +
 +  * both call and start or direct app.exe can start a process, normally no difference
 +  * but if you want to start another batch file, then
 +    * CALL will start it in the same window and the called batch has access to the same variable context.
 +    * START will create a new cmd.exe for the called batch and without /b it will open a new window. As it's a new context, variables can't be shared.
 +      * Starting a new process with CALL, is very similar to running START /wait, in both cases the calling script will (usually) pause until the second script has completed.
 +