How to extract the "target" property of a shortcut
I have a folder containing shortcuts to other folders around the network.
For each shortcut, I need to follow the "target" to the target folder and then check the "date of last update" of each of the files in the target folder.
However, I can not find out how to extract the "target" from the shorcut.
26-09-2006 at 10:28 PM
|
humberto Level: VB Lord Registered: 13-01-2005 Posts: 246
Re: How to extract the "target" property of a shortcut
' use a (microsoft) scripting rumtime
Set wshShell = CreateObject("WScript.Shell")
SHORTCUT = "c:\Lotus Notes 6.5.LNK"
Set oShellLink = wshShell.CreateShortcut(SHORTCUT)
starget = oShellLink.TargetPath
MsgBox (starget)