Open and Wait untill IE is closed in batch file

前端 未结 4 555
猫巷女王i
猫巷女王i 2020-12-04 00:57

I want to open IE from a batch file and wait untill it is closed before going to the next line of the batch file. How to do this? BTW iexplore command seems to be not workin

4条回答
  •  一个人的身影
    2020-12-04 01:29

    The other methods here work if Internet Explorer isn't running.

    If IE is already running though, it won't work properly. This is of course awful if a web page in IE is the starting vector for your script!

    The fix I found is to use -noframemerging as a switch to iexplore.exe:

    start "" /wait "%ProgramFiles%\Internet Explorer\iexplore.exe" -noframemerging "https://www.google.com"
    

提交回复
热议问题