Solved

Shortcut Points to Computer Where Created rather than to C:\ When Copied

Posted on 2003-10-30
5
226 Views
Last Modified: 2009-12-16
I created a shortcut file (.lnk) on my PC. I copied it from my PC to a network drive. I then have a batch file that installs the shortcut - to be used for system installation by other users on the network.

The problem: Although I created the shortcut on my PC as pointing to C:\MyApp\MyApp.exe, when it is installed on a Windows XP machine it then points to \\MyPC\C$\MyApp\MyApp.exe. I want it to point to C:\MyApp\MyApp.exe - I don't want them retrieving the EXE from my machine across the network.

How do I create and install a shortcut that points to the local machine in XP from a BAT file.
0
Comment
Question by:benherron
[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
5 Comments
 
LVL 21

Accepted Solution

by:
gemarti earned 125 total points
ID: 9656331
Try this:
Map a drive to your network folder where the shortcut is to reside:
Open My Documents.
If the folder where you want to place the shortcut is not located in My Documents or its subfolders, use Search to find it. To open Search, click Start, and then click Search.

Double-click the folder where you want to place the shortcut.
On the File menu, point to New, and then click Shortcut.
Follow the instructions in the Create Shortcut Wizard.
0
 

Expert Comment

by:CleanupPing
ID: 9933657
benherron:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 21

Expert Comment

by:gemarti
ID: 9933766
Award points to gemarti.
0
 

Author Comment

by:benherron
ID: 9938698
OK - not a great response to this. The suggested answer by gemarti fails to address the actual question and does not work.

What I ended up doing was changing the C:\ in the path of the shortcut to %SystemDrive%\ which is an environment variable. This works well. Award the points to me - thanks :-)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

738 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