Solved

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

Posted on 2003-10-30
5
202 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now