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
Solved

Shortcut is remapping drive letter

Posted on 1998-12-08
5
580 Views
Last Modified: 2013-12-23
I've got a shortcut to a program that resides on a network drive (M:)
If I double-click the shortcut without the M: drive mapped, Windows (95 or NT, it does the same on both) somehow remembers where the program originally came from, and maps a DIFFERENT drive letter (F:) to the original UNC.  It also modifies the shortcut and permanently changes the drive letter in the "Target" field.  It looks like it grabs the first open drive letter.

My problem arises when this happens in a different office, across our WAN.  Instead of their M: being mapped locally, the shortcut decides its going to find its long-lost home, and maps back to Minneapolis.  This makes the program run very slowly from Washington DC.

So, my question is, how can I prevent Windows from remapping its own drive letter?  Or at least make it map to the one I want?

You can duplicate this problem with any .EXE file.  Just create a shortcut to an EXE on a network drive, then disconnect the drive & try to run the shortcut.  After you run the program, check Explorer & you'll see a new drive mapping.  Check the shortcut properties & you'll see the new drive letter there, too.
0
Comment
Question by:DavePlumb
5 Comments
 
LVL 3

Expert Comment

by:cbo120897
ID: 1546894
You can use a UNC-path to the destination program. For instance I use \\server\share\program.exe

Or you can use a batch file:
1. create the correct map
2. run the program from the 'well known' drive letter

bye
0
 

Author Comment

by:DavePlumb
ID: 1546895
I'm aware that I could use a UNC to map the shortcut, but the reason we use a drive letter is so that we can set up all of our offices exactly the same, and just map the drives differently.

Even using a batch file would mean using a different batch file for each office, thus defeating our concept of setting up everyone the same.

I would really like to know how (and why) Windows decides that it knows where you really wanted that shortcut located, and why it insists on remapping an incorrect drive instead of telling me that it couldn't find the executable.
0
 
LVL 4

Expert Comment

by:saar2
ID: 1546896
Why don't you make the M: mapping permanent?

Saar.


0
 

Accepted Solution

by:
dburns earned 100 total points
ID: 1546897
The answer to your question is use DUMB shortcuts. Or a none mapping shortcut.
If you look on the windows 95cd you will find a program called shortcut.exe . This program  will remove the mapping form your shortcut. There is a text file that will explain the process.

The command line will look something like this for any.exe

shortcut.exe  -c -s -n  any.exe
0
 

Author Comment

by:DavePlumb
ID: 1546898
Looks like SHORTCUT.EXE should do it.  
Thank you very much.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Increase size of DHCP scope? 16 99
Office 2016 Network Activation 2 34
Surface Pro 4 wifi 4 30
Need network only 1 user? 10 67
Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

840 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