I need to open and IE page from a VBScript that is run by a batch file in Windows 8 app mode, not desktop mode. This is so that users can use the swipe feature between IE and the desktop on a tablet. Any suggestions on how to do this?
This is a bit of code that will open IE and go to the URL:
Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_")
urlLine = "https://www.google.com/"
IE.Navigate urlLine
IE.Visible = True
I have tried setting the default browser and settings to Metro mode, but it still opens in desktop mode.
You can read IE Command-Line Options , then you can use:
Set oWSH = CreateObject("WScript.Shell")
oWSH.Run "iexplore.exe -k http://www.myweb.com"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.