I want to create a hardlink all images in the folder, spreading them so "%Y/%m-%B" how to do it?
I wanted to read here, but the link does not work
(http://img.maryno.net/preview/7663d2f1eab01057e76d3b206fe797f7/30cb3140e1b6f22ab246f351800c248d.gif) (http://img.maryno.net/images/7663d2f1eab01057e76d3b206fe797f7/30cb3140e1b6f22ab246f351800c248d.png)
so I tried, but obviously this is wrong
exiftool -r -charset Cyrillic "-Directory<DateTimeOriginal" -d "%Y/%B" "d:\My documents\Desktop\1" -hardlink="d:\2" -k
Thanks for pointing out this broken link in the documentation. I have fixed this. Here is the correct link to the Extra Tags documentation (https://exiftool.org/TagNames/Extra.html).
You create a hard link by writing the HardLink tag. The syntax is exactly the same as writing the FileName tag.
- Phil
Thank you! But unfortunately, I did not understand how to do it :-[
I'm not clear on exactly what you want, but is it something like this?:
exiftool "-hardlink<datetimeoriginal" -d "d:/2/%Y/%m-%B/%%f.%%e" -r "d:\My documents\Desktop\1"
- Phil
Yes! Yes, this is exactly what I need! Thank you, Phil! Just a small problem when you create a folder with the name of the month in the Cyrillic alphabet:
(http://img.maryno.net/preview/4c530085b1389008d0c1f2a04ebfe0fb/c960512c67be51beea623b470d556c67.gif) (http://img.maryno.net/images/4c530085b1389008d0c1f2a04ebfe0fb/c960512c67be51beea623b470d556c67.png)
exiftool -charset Cyrillic "-hardlink<datetimeoriginal" -d "d:/2/%Y/%m-%B/%%f.%%e" -r "d:\My documents\Desktop\1" -k
Yes. Problem. The HardLink feature won't deal well with special characters in Windows file names. You may be able to get it to work by trial and error (what happens if you remove the -charset option), but I can't help much here right now.
- Phil
without lines: -charset Cyrillic No change :(
Pity. I checked, and the Windows file i/o libraries I'm using to handle the special characters in the file names don't support creating hard links. :( So I don't see an easy solution to this.
- Phil
I have found a Perl module (http://search.cpan.org/~rboisvert/Win32-LongPath-1.03/lib/Win32/LongPath.pm) that claims to support hard links for Windows files with Unicode characters. I'll see if I can use this to fix the HardLink feature of ExifTool.
- Phil
I will wait with impatience! Thank you for your help, Phil!