獲取快捷方式的詳細(xì)資料.
FileGetShortcut ( "lnk 文件" )
lnk 文件 | 快捷方式文件(*.lnk)的完整路徑和文件名. |
成功: | 返回快捷方式相關(guān)信息的數(shù)組. 見備. |
失敗: | 設(shè)置 @error 為 1, 無法訪問快捷方式. |
; 設(shè)置快捷方式和 ctrl + alt + t 快捷鍵
FileCreateShortcut(@WindowsDir & "\Explorer.exe", @DesktopDir & "\快捷方式創(chuàng)建例子.lnk", @WindowsDir, "/e,c:\", "這是資源管理器的快捷方式;-)", @SystemDir & "\shell32.dll", "^!t", "15", @SW_MINIMIZE)
; 讀快捷方式的路徑
Local $details
= FileGetShortcut(@DesktopDir & "\快捷方式創(chuàng)建例子.lnk")
MsgBox(0, "", "快捷方式的目標(biāo)路徑: " &
$details[0])
provider with jb51.net (unicode) |