Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lose network drive, shortcut reverts target to previous setting 2

Status
Not open for further replies.

hallux

Programmer
Feb 25, 2003
133
US
Hello,
Is there any way I can force a shortcut to maintain a target instead of reverting the previous setting?

Details
We use an application that sets a shortcut icon on the desktop with a target path of something like "c:\myapp\myapp.exe". Well, for testing purposes, it is required to share c:\myapp, then to map a network drive like S: to the local share myapp. Then we go into the shortcut and change the target path to "s:\myapp.exe" and the program runs as expected. When I logon and the S: drive is not set, it reverts to the "c:\myapp\myapp.exe" as the target for the shortcut icon. I would like to know how to force it to keep the S:\myapp.exe as target.

Thanks,
Hallux
 
I maybe misreading your post, but I think you can either map the drive permanently in My Computer, or put this in your login script:

net use s: c:\myapp /persistent:yes
 
Thanks for the reply. Yes, I already have that setup correctly. It is when for one reason or other the connection is lost, the target falls back. Hope that helps.

I may have to chalk this one up to things that I know Microsoft will that that I don't like but are working as expected. I just would like the icon to keep the path to the S: drive executable, even if the S: drive is not available. But it probably reverts back to the last known good executable as a fall back option.

Thanks,
Hallux
 
Unfortunately the application is hard-coded to use T:, so I cannont change that, but thanks for the suggestion.
-Hallux
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top