in reply to Determining if folder is a shortcut

Try and see this: Win32::Shortcut.

I don't know if there is a method to tell if a file is a shortcut in windows (apart from looking for .lnk extensions), but with this module you should be able to follow the link, if it is a link.

Remember that in windows links are regular files, not directories; so you should check for files to be a shortcut, not dirs.

Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

  • Comment on Re: Determining if folder is a shortcut