我正在尝试从批处理文件/计划任务运行 Internet Explorer。
我的批处理文件包含(全部):
cd "%ProgramFiles%\Internet Explore"
iexplore.exe http://superuser.com -nohome
Run Code Online (Sandbox Code Playgroud)
当我运行批处理文件时,URL 会选择命令行参数,而不是对其进行操作。
我确定我在做一些愚蠢的事情,但目前不知道是什么。解决办法是什么?
这是在带有 Internet Explorer 8 的 Windows 7 Home Premium 上。
更新以回应评论:
我nohome从某个网站或其他网站获得了,可能是评论中提到的那个。之前的尝试实际上是使用nohangrecovery记录在案的Internet Explorer Command-Line Options。
我最初的尝试是这样的(实际上是根据 MSDN 文档:
cd "%ProgramFiles%\Internet Explore"
iexplore.exe -nohangrecovery http://superuser.com
Run Code Online (Sandbox Code Playgroud)
这导致地址栏包含:
抱歉,如果这是重复的 - 我在搜索时看不到任何匹配项。