[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 396
  • Last Modified:

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 !
0
mADOchist
Asked:
mADOchist
1 Solution
 
mADOchistAuthor Commented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now