ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

How to change hundreds of shortcuts... in a hurry

(1/2) > >>

cranioscopical:
Background:
On one machine, I'd built up a comprehensive system of shortcuts pointing to a repository of documents.
I had renamed all of these shortcuts, and grouped them in ways that make sense to me.
All of the shortcuts (.lnk files) reside in one folder, or sub-folders thereof
Now I have moved the whole thing to another destination on a different machine.

Question:
Can anyone tell me a fast way to change the <drive>\<folder> portion of the
<drive>\<folder>\<filename> structure in a couple of hundred of these things?


So, suppose they all point to         G:\Library      (e.g. G:\Library\RefDoc1)
I want to cause them to point to      Q:\NewLibrary   (e.g. Q:\NewLibrary\RefDoc1)


Thanks for taking the time to read this!

Shades:
Maybe it would be a smart idea to make a system and/or user variable in your Windows ENVironment and use that variable in the filename/path of every shortcut. When you want to move from one location to the other you only have to change the variable in the ENVironment. You could even make this user-based if you like that sort of thing  :)

However, this solution will require you to change each and every one of them by hand.

The only .lnk editor I could find has it origins in Russia:
http://linkchanger.codemaker.qarchive.org/
Direct download link:
http://fcsoft.by.ru/-/download.shtml?/products/LinkChanger/LinkChanger.zip

Reading through its manual it seems this is what you are looking for.

Edit: Typo's removed

AndyM:
In your old machine, they all pointed to G:\Library, right?

So start out the same way in your new machine.  The targets are still in G:\Library, and the .lnk files, wherever they are, still point to G:\Library.

Make \NewLibrary on drive Q:.  Now just right drag&drop everything in G:\Library to Q:\NewLibrary, and select "move".  Or move the whole Library folder to Q:, and then rename it NewLibrary.

In either method, the .lnk files will update themselves, no?  (as long as you *move* the files, not copy them and delete the originals.)

SirSmiley:
What Andy said should work if the target directory is the same path except for the drive. I really like Shades suggestion and have to make a note of that for my future use.

If the linkchanger app doesn't do it let me know as I can wip a vbscript file up in five or 10 minutes to do this. May do the script either way. ;)

jgpaiva:
I think AHK [edit](or some scripting of any sort)[/edit]will have to come into play to solve this :)

Andy: I don't think the shortcuts update when you move the files.

Oh, just remembered something: soft/hard links might help.

Navigation

[0] Message Index

[#] Next page

Go to full version