Solved

Modify Target Property of Shortcut file (.lnk)

Posted on 2003-11-19
2
388 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
Comment Utility
0
 
LVL 1

Author Comment

by:mADOchist
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

771 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

11 Experts available now in Live!

Get 1:1 Help Now