Link to home
Start Free TrialLog in
Avatar of mADOchist
mADOchist

asked on

Modify Target Property of Shortcut file (.lnk)

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 !
ASKER CERTIFIED SOLUTION
Avatar of vinnyd79
vinnyd79

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mADOchist
mADOchist

ASKER

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