Can AHK detect the target of a windows shortcut?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
Murica
Posts: 29
Joined: 27 Nov 2022, 17:28

Can AHK detect the target of a windows shortcut?

26 Mar 2024, 17:59

I am using parse to go through directories. I tried this:

Code: Select all

fileread,lines,C:\Users\MURICA\foo.lnk
msgbox,%lines%
🡡 this returned "L" for me. :(
User avatar
mikeyww
Posts: 26973
Joined: 09 Sep 2014, 18:38

Re: Can AHK detect the target of a windows shortcut?

26 Mar 2024, 18:00

Retrieves information about a shortcut (.lnk) file, such as its target file.
Source: FileGetShortcut - Syntax & Usage | AutoHotkey v1
gregster
Posts: 9035
Joined: 30 Sep 2013, 06:48

Re: Can AHK detect the target of a windows shortcut?

26 Mar 2024, 18:06

Iirc, a lnk-file contains binary data.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mikeyww, Rohwedder and 266 guests