Solved

Shortcuts contain hidden UNC mappings???

Posted on 1998-07-21
8
283 Views
Last Modified: 2013-12-14
I have an infrastructure that requires me to copy shortcuts around from one machine to another, and of course the shortcut references paths that those machines have in common.  However, when I send the .lnk file (the shortcut) to a text editor, the name of the original machine is included in the file.  Is there a way to copy/create shortcuts that leaves this out?  Here is an example of what a shortcut looks like in a text editor:  \\YKTTSCS01\C$ is a machine name that is not referenced ANYWHERE when viewing properties of the shortcut itself.  Please help!

L        À      F»        "”Aµ¼ "”Aµ¼ "”Aµ¼ 8L        W          ˆ   àOÐ ê:i¢Ø +00 #C:\                 î 1     a$yv usr   1     a$+u ss97   1     a$u wordpro   2  8L ="à:  wordpro.exe    t            -   4   W         ÒÚMh    C:\  y#                \\YKTTSCS01\C$ usr\ss97\wordpro\wordpro.exe % . . \ . . \ . . \ u s r \ s s 9 7 \ w o r d p r o \ w o r d p r o . e x e  c : \ u s r \ s s 9 7 \ w o r d p r o \  / L E N
0
Comment
Question by:j-enos
[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
  • 4
  • 3
8 Comments
 
LVL 12

Expert Comment

by:Otta
ID: 1769351
Is "\\YKTTSCS01\C$" the "host-name" of the original machine,
followed by the drive-letter (C:) of the boot-drive ???
0
 

Author Comment

by:j-enos
ID: 1769352
I think that the fact that C is the boot drive is not pertinent here.  I can look at shortcuts from other drives, and it ALWAYS has the actual UNC path included somewhere in the .lnk file.  I can see the purpose in this feature, but there is also a real need for functionality to disable it!  Anyone have a clue?
0
 
LVL 12

Expert Comment

by:Otta
ID: 1769353
The shortcut points to the host named 'YKTTSCS01',
and to the 'C:' drive on that machine.
So, it is "pertinent" to *FULLY* "qualify" the UNC,
by pointing to the host and to the drive-letter.
If you want to "edit" the short-cut,
to substitute one host-name for another,
then you are welcome to do so.









0
Industry Leaders: 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!

 
LVL 3

Accepted Solution

by:
TSauer earned 150 total points
ID: 1769354
You can change your system where you create a shortcut to store the absolute path for example C:\office\word.exe
One way is to do this with the policies.
You need the policies for WINNT of the SP3 in this policies.
Open with poledit Local User/ Windows NT Shell/ Restrictions/Disable Link File Tracking , this will tell nt to store the absolut name, when you create a shortcut.

The second way is to use Regedit, oen the Key HKEY_Current_User\Software\Microsoft\Windows\Policies\Explorer\RestrictRun
And add the Key Reg_Binary : LinkResolveIgnoreLinkInfo
With the value of 1
0
 

Author Comment

by:j-enos
ID: 1769355
Thanks very much TSauer... I KNEW I had seen this issue come up before, and a solution.  I haven't tested it yet, but I'm confident it will solve my problem.

Otta- you sound like a know-it-all who just got NT yesterday and learned what a domain is, and needs to tell someone about it.  Obviously, the UNC name is needed if the shortcut is "intended" to point to the original location.  This does not show up in the properties of the shortcut, thus it cannot be changed.  You cannot simply edit the .lnk file and remove the pointer or substitute another machine name.  Test prior to preach, my friend.
0
 
LVL 12

Expert Comment

by:Otta
ID: 1769356
J-ENOS, how very unprofessional of you to post a "flame"
on a forum called 'EXPERTS EXCHANGE'.  
The shame is upon you, for exposing your immaturity to the world.
0
 

Author Comment

by:j-enos
ID: 1769357
The pot calls the kettle black, and the paradox continues... who gets the last post before the discussion is finally brought to a private level?  Not to under-rate my own value of the Experts-Exchange forum, but it is still missing some vital (and basic) functionality that prevents it from becoming the best friend to any System Engineer- and that is a SEARCH capability.
Otta- I agree, that was unprofessional of me- and should have been sent to you privately.  My apologies to whomever is drowning in this wasted bandwidth.  On the other hand, Otta, it WAS a message that you need to recognize.
0
 
LVL 12

Expert Comment

by:Otta
ID: 1769358
> My apologies ...
> On the other hand, ...

Some apology -- you offer it, and then you retract it.

Enough wasting of my time.

> Check here if you'd like an email notification whenever this question is updated

No thanks, I have better things to do.



0

Featured Post

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

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…
No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

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