Group:  English: General ยป microsoft.public.windows.file_system
Thread: If I move a file, is there a tool that can update all its shortcuts?

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

If I move a file, is there a tool that can update all its shortcuts?
baobob[ at ]my-deja.com 07.07.2007 07:36:52
I have a collection of many files I want to be able to locate by
topic.

The files live in a tree. At the top of the tree are, say, folders
named Animals, Plants and Minerals. Animals contains subfolders Cats,
Dogs, etc. Plants contain Flowers, Trees, etc. Minerals contain Gems,
Rocks, etc.

If I have a file about both Cats and Gems, I can keep the file in
Cats, and put a shortcut to it in Gems (or vice versa). That way I
find the file by drilling down to either topic.

Trouble is, my tree is highly dynamic--its topic folders are
constantly changing. (For example, I'll discover I want to replace
Cats and Dogs with a single folder, Pets.)

Of course, shortcuts to a Windows file become invalid if you move the
file.

Is there a tool that can automatically update and keep valid all a
file's shortcuts, if you move the file?

(I know the stock answer would be to create a database of some sort,
in which the files' physical location is independent of the indexing
system. But that's a software effort that's far too non-trivial for
me.)

Surely there's an applet that just sits in memory and does this kind
of thing?

Thanks much.

***

Re: If I move a file, is there a tool that can update all its shortcuts?
baobob[ at ]my-deja.com 07.07.2007 07:40:41
Forgot to add: I'd also like to overcome a file's shortcuts becoming
invalid if I RENAME the file, as well.

***

Re: If I move a file, is there a tool that can update all its shortcuts?
"George Valkov" <a[ at ]b.com> 12.07.2007 12:48:42
Yes, this is possible. It is called "hardlink" and only works on NTFS
partitions.
advantages:
:: a file may have many names in different locations (must be on the same
partition). And all this names can point to one and same location
(physically) on the disk. Then you can open the file using any of its names
(hardlinks) to view or edit it.
:: usefull for big files to save space because hardlinks does not consume
space on disk.
:: the disk space taken by the file will be freed after all of its hardlinks
have been deleted.

How to create a hard link? First open Command Prompt (start --> run "cmd").
Type this for help:
fsutil hardlink create
| Usage : fsutil hardlink create <new filename> <existing filename>
| Eg : fsutil hardlink create c:\foo.txt c:\bar.txt

I usually run it like this:
fsutil hardlink create "original file name_hardlink.ext" "original file
name.ext"
Then I move "original file name_hardlink.ext" to another location and rename
it.


George Valkov



<baobob[ at ]my-deja.com> wrote:
|I have a collection of many files I want to be able to locate by
| topic.
|
| The files live in a tree. At the top of the tree are, say, folders
| named Animals, Plants and Minerals. Animals contains subfolders Cats,
| Dogs, etc. Plants contain Flowers, Trees, etc. Minerals contain Gems,
| Rocks, etc.
|
| If I have a file about both Cats and Gems, I can keep the file in
| Cats, and put a shortcut to it in Gems (or vice versa). That way I
| find the file by drilling down to either topic.
|
| Trouble is, my tree is highly dynamic--its topic folders are
| constantly changing. (For example, I'll discover I want to replace
| Cats and Dogs with a single folder, Pets.)
|
| Of course, shortcuts to a Windows file become invalid if you move the
| file.
|
| Is there a tool that can automatically update and keep valid all a
| file's shortcuts, if you move the file?
|
| (I know the stock answer would be to create a database of some sort,
| in which the files' physical location is independent of the indexing
| system. But that's a software effort that's far too non-trivial for
| me.)
|
| Surely there's an applet that just sits in memory and does this kind
| of thing?
|
| Thanks much.
|
| ***
|


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net