编写bat文件以在用户桌面上放置iexplorer图标

时间:2015-11-03 01:43:17

标签: batch-file sharepoint

我想在我的网络服务器上放置一个bat文件并将链接发送给我的用户。该文件将为我的sharepoint站点安装Internet Explorer快捷方式。我的网络服务器上也有ico文件。我不能让它工作,但这就是我得到的。

echo [InternetShortcut] > "%userprofile%\Desktop\Sharepoint.URL"
echo URL="C:\Program Files\Internet Explorer\iexplorer.exe" https://lpc.sharesrvr.com >> "%userprofile%\Desktop\Sharepoint.URL"
echo IconFile=www.leonardpaper.com/Images/Sharepoint.ico >> "%userprofile%\Desktop\Sharepoint.URL"
echo IconIndex=0 >> "%userprofile%\Desktop\Sharepoint.URL"

1 个答案:

答案 0 :(得分:0)

我认为URL不会接受"C:\Program Files\Internet Explorer\iexplorer.exe"作为URL,所以如果删除它,它应该有效。 编辑:
 这应该工作。唯一让我觉得它可能不起作用的是省略了“http”

(
echo [InternetShortcut]
echo URL=https://lpc.sharesrvr.com
echo IconFile=http://www.leonardpaper.com/Images/Sharepoint.ico
echo IconIndex=0
)>"%userprofile%\Desktop\Sharepoint.URL"

iexplore.exe而不是iexplore r .exe

相关问题