Using 7za x -aou to extract multiple files and keeping duplicates results in duplicate files having creation dates 1 hour apart, why? - 7zip

I currently have about 102 zip files, of which I would like to combine them into one folder. A lot of the files within the zip files between zip files have the same name and content. I do not want them to overwrite. I used the following command:
7za x '*.zip' -aou -o/Path/To/Export/To
This works fine in that, say if zipfile1.zip and zipfile2.zip had the same file called IMG.jpg, with the EXACT contant, it would create two names, one with IMG.jpg and the other with IMG_1.jpg.
HOWEVER, I noticed that upon comparing the files, the creation/modification time was off by 1 hour. Is there a reasonable explanation for why?

According to this forum, it is not supported to preserve creation time due to lack of interest in the 7-zip team. It's not a great answer, but it seems to be the answer.

Related

Partial update of tags in ctags

I have a large code base, which universal ctags takes 10 minutes to process. When I develop it, I modify a small number of files and would like to update the tags of those files only (to avoid spending 10 minutes again).
ctags's --append option does not work for me: it either erases the previous tags file and I only get the few modified files in it, or it appends the modified files and I get duplicated tags for those. Is there an option that erases only the modified files, and then appends the new tags?
I would also accept a program that merges 2 tags files, in the way described above.

WinMerge: How to compare folder names and file names only, recursively?

I currently have two main music folders, one is FLAC, ripped from CD, another is MP3, converted from FLAC. Over the years, my primary MP3 collection (in its own folder) has come from various sources, and has become a mess. I apparently messed up some of the FLAC to MP3 conversions too, and appear to be missing .mp3 files in both MP3 folders.
So, I tried WinMerge to see the differences, but it doesn't appear to be able to compare folder and file names only. It supports recursive folder search, which is nice, but without "names only" filtering, pretty much EVERYTHING looks different when comparing FLAC and MP3 files. I've reviewed comparison options and app preferences and tried looking online, and I've found nothing yet.
Maybe WinMerge isn't the best tool for this, but my attempts with other tools have failed, like with WinDiff. What am I missing, or what should I try?
Open CMD/Shell in each of the folders you want to compare.
Run tree /F . > tree.txt in the CMD, that will export the folder and file structures to a plaintext file named tree.txt under dir (If you wanna compare the folder only, just remove the /F param).
Open WinMerge, compare these plaintext files instead of the concrete directories.
PS:
There will be some differences at the head of files, but it is easy to distinguish.
Make sure you run the command in the exact directory for comparison, if you get the structure of parent/sub folder, the result of comparison will be in complete shambles.
Remember to delete the file after comparing if you don't need it anymore.

Is it possible to append prefix to files names taken from folder name, automatically? (Windows)

I work as technical photographer. I do a lot of photos of particular parts. Each parts get a folder assigned and then I copy photos to the folder.
I would like the names of files (photos) get a prefix which is folder name. Example:
I take 20 photos of part A1. I copy those 20 photos from SD card to my PC to previously created folder named "A1". I would like those 20 files to have names as follows:
A1(1)
A1(2)
A1(3)
[...]
A1(20)
Is it possible to make it automatic? or do it by one click?
Thanks in advance
If you don't need to preserve the original numbering, it's as simple as selecting all the files in Explorer, pressing F2 (for rename) and typing in the new name. The files will automatically get non-colliding names in the form of "Name (number)".
This respects the ordering you have selected in Explorer, so if you want the index to increment from older to newer files, for example, just sort the files by date ascending.
This can also be used to preserve the original numbering, but only if there are no gaps and if the numbers start from 1. If you sort the files by name and do the rename trick, they will still be ordered the same as before. If there are gaps, they will not be there anymore with the new file names, though.
One more gotcha is that this only works if all of the files have the same extension. If some are jpg and others png, for example, each extension will get its own numbering.
If this isn't good enough, you'll either have to use a script, which is a bit more advanced, or some tool that helps with batch renaming. My favourite has been Total Commander for a long time - in TC, this is as simple as selecting the files you want to rename, pressing Ctrl+M, and changing the file name to something like A1 ([N]).

7zip: In C#, how to add multiple files of the same name in different directories to the same zip file?

I created a C# snippet that calls 7zip (7za) to add a list of files to a zip archive. Problem is multiple files in different directories have the same name, so 7zip either complains about duplicate names or replaces the first file with the second only storing the last added. I cannot recursively scan a directory which would allow duplicates.
Is there a way to force 7zip to store the directory, or in ASP.NET MVC 3 C# to create zip files with duplicate file names when not considering the full path?
The path to our image is the GTIN number broken up by every five digits. The last five are the name of the image.
G:\1234\56789\01234.jpg
G:\4321\09876\01234.jpg
G:\5531\33355\01234.jpg
These would fail to all store in a 7zip archive correctly.
You can use SevenZipSharp: http://sevenzipsharp.codeplex.com/ a wrapper around 7zip. You will have full control from code.
We managed to get multiples in the same archive by creating a file list that doesn't contain leading backslashes, then running the application from the directory containing them:
1234\56789\01234.jpg
4321\09876\01234.jpg
5531\33355\01234.jpg
It solves it for now. Anyone with a better idea?

Utility to hash and list files with identical contents?

UltraEdit saves temporary, ie. unsaved/untitled, files as (regex) "Edit.\d+".
When UltraEdit is killed (I do this when some software nags me to reboot), I noticed that it doesn't always save files in the same directory, so I end up with a bunch of "Edit.\d+" files scattered in my two hard-disks, with a lot of identical contents.
So I'd like a free utility for Windows that can...
search my hard-disks for all files whose filename matches "Edit.\d+"
generate some hashing of the file so it has some signature, and
output a list of all identical files so that I don't waste time checking files that exist in multiple copies on my hard-disk, and just take care of unique files.
Anyone knows of such a thing?
Thank you.
found this: http://www.atory.com/Dupe_Checker/
can't give you a review but it looks legit

Resources