CALL command vs. START with /WAIT option

后端 未结 6 1940
孤城傲影
孤城傲影 2020-11-30 17:59

How is the START command with a WAIT option

START /wait notepad.exe 
START /wait  notepad.exe 

...any different from using a CALL command?

6条回答
  •  半阙折子戏
    2020-11-30 18:54

    Call

    Calls one batch program from another without stopping the parent batch program. The call command accepts labels as the target of the call. Call has no effect at the command-line when used outside of a script or batch file. https://technet.microsoft.com/en-us/library/bb490873.aspx

    Start

    Starts a separate Command Prompt window to run a specified program or command. Used without parameters, start opens a second command prompt window. https://technet.microsoft.com/en-us/library/bb491005.aspx

提交回复
热议问题