获取快捷方式的详细资料.
FileGetShortcut ( "lnk 文件" )
lnk 文件 | 快捷方式文件(*.lnk)的完整路径和文件名. |
成功: | 返回快捷方式相关信息的数组. 见备. |
失败: | 设置 @error 为 1, 无法访问快捷方式. |
; 设置快捷方式和 ctrl + alt + t 快捷键
FileCreateShortcut(@WindowsDir & "\Explorer.exe", @DesktopDir & "\快捷方式创建例子.lnk", @WindowsDir, "/e,c:\", "这是资源管理器的快捷方式;-)", @SystemDir & "\shell32.dll", "^!t", "15", @SW_MINIMIZE)
; 读快捷方式的路径
Local $details
= FileGetShortcut(@DesktopDir & "\快捷方式创建例子.lnk")
MsgBox(0, "", "快捷方式的目标路径: " &
$details[0])
provider with jb51.net (unicode) |