borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (How to disbale Checked lines in list View ?)Next Topic (Convert Text String to Array) New Topic New Poll Post Reply
AndreaVB Forum : VB General : How to extract the "target" property of a shortcut Solved Topic
Poster Message
Petershoare
Level: Trainee

Registered: 26-09-2006
Posts: 2

Ads by Lake Quincy Media
icon 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.

Ads by Lake Quincy Media
26-09-2006 at 10:28 PM
View Profile Send Email to User Show All Posts | Quote Reply
humberto
Level: VB Lord

Registered: 13-01-2005
Posts: 256
icon 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)

02-10-2006 at 12:23 PM
View Profile Send Email to User Show All Posts | Quote Reply
Petershoare
Level: Trainee

Registered: 26-09-2006
Posts: 2
icon Re: How to extract the "target" property of a shortcut

Thank you - problem solved.

02-10-2006 at 04:19 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : How to extract the "target" property of a shortcut Solved Topic
Previous Topic (How to disbale Checked lines in list View ?)Next Topic (Convert Text String to Array) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder