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
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"