欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Windows 腳本宿主  

WshUrlShortcut 對象

WshShell Object

允許以編程方式創(chuàng)建 Internet 資源的快捷方式。

說明

WshUrlShortcut 對象是 WshShell 對象的子對象 — 必須使用 WshShell 對象的 CreateShortcut 方法創(chuàng)建 WshUrlShortcut 對象(例如,WshShell.CreateShortcut(strDesktop & "\Shortcut Script.lnk"))。

示例

下面的示例演示創(chuàng)建 www.microsoft.com/china 的 URL 快捷方式。

<package>
   <job id="vbs">
      <script language="VBScript">
         set WshShell = WScript.CreateObject("WScript.Shell")
         set oUrlLink = WshShell.CreateShortcut(strDesktop & "\Microsoft Web Site.url")
         oUrlLink.TargetPath = "http://www.microsoft.com/china"
         oUrlLink.Save
      </script>
   </job>

   <job id="js">
      <script language="JScript">
         var WshShell = WScript.CreateObject("WScript.Shell");
         var oUrlLink = WshShell.CreateShortcut(strDesktop + "\\Microsoft Web Site.url");
         oUrlLink.TargetPath = "http://www.microsoft.com/china";
         oUrlLink.Save();
      </script>
   </job>
</package>

屬性

FullName 屬性(WshUrlShortcut 對象) | TargetPath 屬性

方法

Save 方法

請參閱

運行腳本 | CreateShortcut 方法