如何创建快捷方式在Windows 7 64位网站强制Internet Explorer



我想创建一个批处理文件,在用户桌面上安装快捷方式。快捷方式将转到仅使用Internet Explorer的网站。我还想把我们的图标添加到快捷方式中。最终用户在其计算机上只有标准的Windows用户权限。

快捷方式目标="C:\Program Files\Internet Explorer\iexplore.exe"https://support.mysite.com快捷方式位置=运行批处理文件的用户的桌面,图标的位置=C:\Icons

谢谢你的帮助!

在Vbscript中,您可以强制使用Internet Explorer打开网站,如下所示:

Option Explicit
Dim WS,IE,URL
Set ws = CreateObject("wscript.shell")
IE = "%ProgramFiles%Internet Exploreriexplore.exe"
URL = "http://stackoverflow.com/questions/28635952/how-to-create-shortcut-in-windows-7-64bit-to-a-website-forcing-internet-explorer"
WS.run DblQuote(IE) & " " & URL
'********************************************
Function DblQuote(Str)
    DblQuote = Chr(34) & Str & Chr(34)
End Function
'*******************************************

从命令提示符或批处理文件中调用此函数。

Echo [InternetShortcut] > site.url 
Echo URL=http://example.com/ >> site.url

对于互联网地址,您需要url文件。

最新更新