Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2003-10-30
5
Medium Priority
?
236 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 500 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

722 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