Shell script to get shortcut's target on Win32?

Sarah Reichelt sarah.reichelt at gmail.com
Sun Oct 9 00:34:59 EDT 2005


> Does anyone know how to write a shell script to get the target of a
> shortcut on Windows?
>
> I'm using the aliasReference command, but it returns an unusable file
> name.  For example,
>
>        the aliasReference of "C:\Documents and Settings/frank/My
> Documents/My Pictures/1-originals/IMG_4668 copy 1.JPG.lnk"
>
> returns
>
>        "C:\DOCUME~1/frank/Desktop/Morrone/IMG_46~1.JPG"
>
> which is quite unusable for my purposes.

I can't try this at the moment Frank, but does the shortFilePath
function help at all?

Sarah



More information about the use-livecode mailing list