下面的vbs创建快捷方式如何自定义快捷方式图标
functionmycreateURLshortcut(StrDect,StrTarger,StrName)dimWshShell,StrDectrsetWshShell...
function mycreateURLshortcut(StrDect,StrTarger,StrName)
dim WshShell,StrDectr
set WshShell=wscript.createobject("wscript.shell")
Select Case lcase(StrDect)
Case "d" strDectr = WshShell.SpecialFolders("Desktop")
End Select
set OurLink = WshShell.CreateShortcut(strDectr & "\" & StrName & ".url")
OurLink.TargetPath = StrTarger
OurLink.Save
end function
mycreateURLshortcut "d","http://www.baidu.com/","快捷方式" 展开
dim WshShell,StrDectr
set WshShell=wscript.createobject("wscript.shell")
Select Case lcase(StrDect)
Case "d" strDectr = WshShell.SpecialFolders("Desktop")
End Select
set OurLink = WshShell.CreateShortcut(strDectr & "\" & StrName & ".url")
OurLink.TargetPath = StrTarger
OurLink.Save
end function
mycreateURLshortcut "d","http://www.baidu.com/","快捷方式" 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询