Two different names to the same file
Moderators: white, Hacker, petermad, Stefan2
Two different names to the same file
What is the best solution to find a file by the old or a new name?
Assume that I have downloaded or got by e-mail a file, and I want to provide a more meaningful name, but I also want to keep ability to find it by its old name.
Please note that the file can be stored inside of 7zip archive.
Assume that I have downloaded or got by e-mail a file, and I want to provide a more meaningful name, but I also want to keep ability to find it by its old name.
Please note that the file can be stored inside of 7zip archive.
I don't want to use 2 files: old name.ext and new name.ext.Stefan2 wrote:Just make a zero size text file.
old name.ext 123 kB
old name.ext.txt 0 kB
new name.ext 123 kB
Also you can drop the txt extension
old name.ext 0 kB
new name.ext 123 kB
Also your solution doesn't have relation between 2 filenames.
Can I store and find information about the previous name in the new file (new name.ext)?
Only on files which support meta data, like MP3 and JPG.misvin wrote:Can I store and find information about the previous name in the new file (new name.ext)?
Alternatively you can use file comments with the "descript.ion" file.
Search the help for "Edit comment"
This is one single additional file per folder.Allows to set or change a file comment stored in a file called descript.ion or files.bbs.
Comments can be displayed with Show - Comments (Ctrl+Shift+F2) within the file lists,
or by moving the mouse over a file name
misvin,
Well, you could us both names in one, like "oldname # newname.txt". Or you could use hard links, where two different file names point to the same content.
Roman
Well, you could us both names in one, like "oldname # newname.txt". Or you could use hard links, where two different file names point to the same content.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Using ADS for preserving the original file name
You can save the old file name as an alternate data stream. This presupposes you will confine yourself in ntfs.I don't want to use 2 files: old name.ext and new name.ext.
Also your solution doesn't have relation between 2 filenames.
A wonderful plugin, http://www.totalcmd.net/plugring/NTFS_diz.html can save multiple such names, which you can view through custom columns. That presupposes you will use TC to copy for preserving the comment and remain in ntfs.
Agreed with Gral that:
Suite yourself.[T]here is no one best solution.
1. Thanks to all of you.
2. In the meantime, the best solution (for me) is to store the file with old name inside 7zip archive file, and rename <old_name.7z> to <new_name.7z>.
3.
Limitation 2: Comments only work with normal files, not with files in archives.
Limitation 3: To find file, you should search twice: regular search for <new_name> file, and search for text (<old_name>) in descript.ion files.
4.
In the "Name" column I want to see the new filenames only.
The old filename may be required only in rare cases (for searching or analyzing data).
Limitation 2: In the "Name" column I want to see the new filenames only.
5.
5.1. Add files to archive (7z)
5.2. Upload and synchronize files with ADS on OneDrive, Google Drive, Dropbox cloud storage.
5.3. Send, receive, open files with ADS by mail (GMail, Yahoo, Hotmail, Exchange Server).
2. In the meantime, the best solution (for me) is to store the file with old name inside 7zip archive file, and rename <old_name.7z> to <new_name.7z>.
3.
Limitation 1: A user can't copy+paste via Explorer.Stefan2 wrote: Alternatively you can use file comments with the "descript.ion" file.
Limitation 2: Comments only work with normal files, not with files in archives.
Limitation 3: To find file, you should search twice: regular search for <new_name> file, and search for text (<old_name>) in descript.ion files.
4.
Disadvantage: long filenames.Hacker wrote: Well, you could us both names in one, like "oldname # newname.txt".
In the "Name" column I want to see the new filenames only.
The old filename may be required only in rare cases (for searching or analyzing data).
Limitation 1: Hard links only work with normal files, not with files in archives.Hacker wrote: Or you could use hard links, where two different file names point to the same content.
Limitation 2: In the "Name" column I want to see the new filenames only.
5.
Does it say that all information in alternate data streams (ADS) is lost when a user try to:sorcar wrote:You can save the old file name as an alternate data stream. This presupposes you will confine yourself in ntfs.
A wonderful plugin, http://www.totalcmd.net/plugring/NTFS_diz.html can save multiple such names, which you can view through custom columns. That presupposes you will use TC to copy for preserving the comment and remain in ntfs.
5.1. Add files to archive (7z)
5.2. Upload and synchronize files with ADS on OneDrive, Google Drive, Dropbox cloud storage.
5.3. Send, receive, open files with ADS by mail (GMail, Yahoo, Hotmail, Exchange Server).
misvin,
Roman
Well, they are both archived but in the 7z format the link status is lost.misvin wrote:Limitation 1: Hard links only work with normal files, not with files in archives.Hacker wrote:Or you could use hard links, where two different file names point to the same content.
-snsmisvin wrote:Does it say that all information in alternate data streams (ADS) is lost when a user try to:sorcar wrote:You can save the old file name as an alternate data stream. This presupposes you will confine yourself in ntfs.
A wonderful plugin, http://www.totalcmd.net/plugring/NTFS_diz.html can save multiple such names, which you can view through custom columns. That presupposes you will use TC to copy for preserving the comment and remain in ntfs.
5.1. Add files to archive (7z)
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.