[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Modify Target Property of Shortcut file (.lnk)

Posted on 2003-11-19
2
Medium Priority
?
395 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 400 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

650 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