in reply to Re: How to get URL associated with an existing Windows URL shortcut?
in thread How to get URL associated with an existing Windows URL shortcut?

Ah well now that I know this, I won't mess around with these mods, I'll just open the file and get the URL. Thanks!
  • Comment on Re^2: How to get URL associated with an existing Windows URL shortcut?

Replies are listed 'Best First'.
Re^3: How to get URL associated with an existing Windows URL shortcut?
by NERDVANA (Priest) on Aug 04, 2023 at 20:57 UTC
    If this is long-lived code, I would still use the Win32::OLE module. You never know when the internals of the file structure will change, and then your regex trick stops working.

    But, if you're just making quick scripts to get work done, then yeah do it whichever way is fastest.