CALL command vs. START with /WAIT option

后端 未结 6 1926
孤城傲影
孤城傲影 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 19:02

    This is an old thread, but I have just encountered this situation and discovered a neat way around it. I was trying to run a setup.exe, but the focus was returning to the next line of the script without waiting for the setup.exe to finish. I tried the above solutions with no luck.

    In the end, piping the command through more did the trick.

    setup.exe {arguments} | more

提交回复
热议问题