gpt4 book ai didi

windows - 在 Windows 8 应用程序模式而非桌面模式下打开 IE URL

转载 作者:可可西里 更新时间:2023-11-01 10:44:34 24 4
gpt4 key购买 nike

我需要从 Windows 8 应用程序模式而非桌面模式下的批处理文件运行的 VBScript 打开 IE 页面。这是为了让用户可以在平板电脑上使用 IE 和桌面之间的滑动功能。有关如何执行此操作的任何建议?

这是一段将打开 IE 并转到 URL 的代码:

Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_")

urlLine = "https://www.google.com/"

IE.Navigate urlLine
IE.Visible = True

我已经尝试将默认浏览器和设置设置为 Metro 模式,但它仍然以桌面模式打开。

最佳答案

您可以阅读 IE Command-Line Options ,那么你可以使用:

Set oWSH = CreateObject("WScript.Shell")
oWSH.Run "iexplore.exe -k http://www.myweb.com"

关于windows - 在 Windows 8 应用程序模式而非桌面模式下打开 IE URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31705527/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com