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!

Changing file shares but not the shortcut

Status
Not open for further replies.

mikesid

MIS
Mar 23, 2004
223
US
I have a confusing question so please bear with me. We have a folder shared on the network that everyone points to on there startup folder and desktop, it's a shortcut to a custom app. This program will be getting updated more frequently but when we update this program it goes into a different folder. For example we have it mapped to our F: drives (this also has other folders and files). When we create the shortcut we are actually creating a shortcut to F:\dir\filename.exe. But when we do updates it will be F:\dir1\filename.exe. Is there a way to make it so that when we change the dir name we dont have to go to everyones PC and change the desktop and startup folder shortcut to point to the new dir? Is there a way to automatically have it update if we change the dir anme?
 
Setup original directory (dir1):
Right click directory > Sharing... >
Select "Share this folder", and make the "Share name" CurrentApps.
Then on the workstations, the shortcut will be for:
\\computername\CurrentApps\filename.exe

After updates:
Right click the original directory (from above) > Sharing..
Select "Do not share this folder"
Right click the updated directory (dir2) > Sharing...
Select "Share this folder", and make the "Share name" CurrentApps.
Then on the workstations, the shortcut will be for:
\\computername\CurrentApps\filename.exe

This way you don't have to worry about the actual directory name, just the name it is shared as! Hope this helps!

X
 
That is a good way to do it. I never thought of that. Unfortunately in our case we already have the whole drive shared (it's actually some huge NAS thing.) so when we connect to the drive (in our case F:)we see ALL directories including the one we are talking about. So on thier shortcut it says F:\directory\filename.exe.
 
Would it be possible to rename the current "dir" to "dirold" then install the update to a new folder "dir"?

George
MCSA +Messaging (Win2k) A+, Net +
 
I was thinking of that but we have some code that is hard coded to that dir,"dir1" instead of "dir". So if we changed it to dir the code is still pointing to dir1.
 
Two ideas

#1 Use a script to map an additional drive G to "\\servername\dir"
you would then set your shortcuts to "G:\filename.exe" then when "dir" becomes "dir1" just change the script to map drive to "\\servername\dir1"


if that wouldn't work

#2 create the shortcut, copy it to the server then use a batch file to copy the shortcut to the desktop and to the startup folder

ie. copy "\\servername\dir\shortcut.lnk" "c:\documents and settings\all users\desktop"
copy "\\servername\dir\shortcut.lnk" "C:\documents and settings \all users\start menu\programs\startup"

Hope that gives you something usefull



George
MCSA +Messaging (Win2k) A+, Net +
 
Thanx for all the info. I am going to try them out tomorrow.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top