asp怎麼在桌面上創建快捷方式?

 

  1. <script language="VBScript">  
  2.  
  3.  
  4. Set Shell = CreateObject("WScript.Shell")  
  5.  
  6.  
  7. DesktopPath = Shell.SpecialFolders("Desktop")  
  8.  
  9.  
  10. Set link = Shell.CreateShortcut(DesktopPath + "\IT知道網.lnk")  
  11.  
  12.  
  13. link.Description = "IT知道網" 
  14.  
  15.  
  16. link.TargetPath = "" 
  17.  
  18.  
  19. link.Save()  
  20.  
  21.  
  22. </script>  

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章