How to get the target of a Windows shortcut file

2006-05-05 Thread Steve M
Below is some code adapted from something I think was written by Mark Hammond. Originally I needed to create a Windows shortcut (link), and this code does the trick, requiring only the target filename and the desired shortcut name. Now, I find I need to open a shortcut and extract the target filena

Re: How to get the target of a Windows shortcut file

2006-05-05 Thread Roger Upole
persist.Load('someshortcut.lnk') print sh.GetPath(shell.SLGP_RAWPATH)[0] hth Roger "Steve M" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Below is some code adapted from something I think was written by Mark > Hammond. Originally I needed to create a Windows shortcut (li