asp怎么在桌面上創(chuàng)建快捷方式?將下面一段代碼放入html文件中,采用VBScript動態(tài)生成的喲,即可在桌面上建立一快捷方式:
<script language=”VBScript”>
Set Shell = CreateObject(“WScript.Shell”)
DesktopPath = Shell.SpecialFolders(“Desktop”)
Set link = Shell.CreateShortcut(DesktopPath + “IT知道網(wǎng).lnk”)
link.Description = “IT知道網(wǎng)”
link.TargetPath = “”
link.Save()
</script>