欢迎光临
我们一直在努力

ASP之在服务器端创建快捷方式二之例子。

建站超值云服务器,限时71元/月

wshshell.createshortcut
createshortcut 方法创建 wshshortcut 对象并将其返回。如果快捷方式标题以 .url 结尾,就会创建 wshurlshortcut 对象。

语法
wshshell.createshortcut(strpathname) = objshortcut

示例
this code fragment creates a shortcut
to the currently executing script
    set wshshell = wscript.createobject("wscript.shell")
    set oshelllink = wshshell.createshortcut("current script.lnk")
    oshelllink.targetpath = wscript.scriptfullname
    oshelllink.save
    set ourllink = wshshell.createshortcut("microsoft web site.url")
    ourllink.targetpath = "http://www.microsoft.com"
    ourllink.save

请参阅
wshshortcut 对象、wshurlshortcut 对象

———————-
这是微软自带的东东,或许有的朋友没有发现,贴出来共享一下吧。

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » ASP之在服务器端创建快捷方式二之例子。
分享到: 更多 (0)