[Last Call] Learn how to a build a cloud-first strategyRegister Now

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

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

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
benherron
Asked:
benherron
  • 2
1 Solution
 
gemartiCommented:
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
 
CleanupPingCommented:
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
 
gemartiCommented:
Award points to gemarti.
0
 
benherronAuthor Commented:
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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