Solved

Modify Target Property of Shortcut file (.lnk)

Posted on 2003-11-19
2
389 Views
Last Modified: 2007-12-19
My company is forcing us to use a certain Drive letter (U:) that we already use is there a way to modify the target value of a shortcut file in VB ???

I've looked around and can only find examples on how to create one !
0
Comment
Question by:mADOchist
2 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 100 total points
ID: 9781840
0
 
LVL 1

Author Comment

by:mADOchist
ID: 9782548
I need to open an existing shortcut verify it's actual target then if the Drive that this Target is pointing to is "U" then I want to modify it to "W". I think this should make my problem clearer thanx for quick response

Example.

WHat I want to do:

Pseudo-Code :
For Each File in folder
      if file.Extension = "lnk" then
              if mid$(File.Extension.Target,1,2) = "U:" Then
                          Call ChangeTarget("U:", "W:")
              end if
      end if
next File
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now