ExifTool Forum

ExifTool => Newbies => Topic started by: bakkergf on January 04, 2016, 06:00:55 PM

Title: windows filename not changed
Post by: bakkergf on January 04, 2016, 06:00:55 PM
dear forum,

for 2 days i'm struggling with renaming a file to the date the picture was taken.
I'm using the cmd and windows 7 for this.

exiftool "-filename<CreateDate" -d %y%m%d_%H%M%S_%%-c.%%le -r december2015

The program gives the prompt:
1 directories scanned
29 files updated

then I check the windows filename and they are still the same as before, but exiftool cannot find the images by their windows filename and only accepts the new filename

If I execute the original filename in the command window, the image opens as expected
If I call exiftool with the windows file name it prompts: can not find specified file
If I call exiftool with the new filename, it gives all the details of the picture including the new filename in the tag

Can someone please shed some light on this?
Title: Re: windows filename not changed
Post by: Martin B. on January 04, 2016, 06:54:38 PM
Hi,

I tried your command with some files I have, and it works for me. But I don't understand what you mean by If I execute the original filename in the command window.

From what you describe, it could be that the files are renamed, but perhaps your display is not updated. The same sometimes happens to me; some program renames the files, but Windows Explorer displays the old name. The solution is to force a refresh of the window.

Did you try right-click / Refresh in your Windows Explorer window (the GUI, not the cmd terminal)? Hitting the F5 key also works.

For us to help you more, you could run the following three commands and report the results here:
dir
exiftool "-filename<CreateDate" -d %y%m%d_%H%M%S_%%-c.%%le -r december2015
dir


Martin
Title: Re: windows filename not changed
Post by: Phil Harvey on January 04, 2016, 07:24:00 PM
Martin has a good suggestion, except you should specify the directory name for the "dir" command:

dir december2015
exiftool "-filename<CreateDate" -d %y%m%d_%H%M%S_%%-c.%%le -r december2015
dir december2015


- Phil
Title: Re: windows filename not changed
Post by: bakkergf on January 04, 2016, 07:59:57 PM
E:\Freek\Desktop>dir december2015
Volume in drive E is Documenten
Volume Serial Number is A47D-51AE

Directory of E:\Freek\Desktop\december2015

04-01-2016  21:53    <DIR>          .
04-01-2016  21:53    <DIR>          ..
02-01-2016  17:45         5.250.107 Vakantie_in_Colombia_556.jpg
02-01-2016  19:08         1.649.264 Vakantie_in_Colombia_557.jpg
02-01-2016  19:08         1.624.371 Vakantie_in_Colombia_558.jpg
02-01-2016  19:08         2.234.924 Vakantie_in_Colombia_559.jpg
02-01-2016  19:08         2.156.591 Vakantie_in_Colombia_560.jpg
02-01-2016  19:08         2.245.291 Vakantie_in_Colombia_561.jpg
02-01-2016  19:08         3.039.110 Vakantie_in_Colombia_562.jpg
02-01-2016  19:08         3.740.317 Vakantie_in_Colombia_563.jpg
02-01-2016  19:08         4.086.950 Vakantie_in_Colombia_564.jpg
02-01-2016  19:08         3.856.697 Vakantie_in_Colombia_565.jpg
02-01-2016  19:08         2.370.375 Vakantie_in_Colombia_566.jpg
02-01-2016  19:08         1.703.632 Vakantie_in_Colombia_567.jpg
02-01-2016  19:08         2.253.508 Vakantie_in_Colombia_568.jpg
02-01-2016  19:08         1.764.792 Vakantie_in_Colombia_569.jpg
02-01-2016  19:08         2.609.610 Vakantie_in_Colombia_570.jpg
02-01-2016  19:08         3.338.737 Vakantie_in_Colombia_571.jpg
02-01-2016  19:08         3.394.558 Vakantie_in_Colombia_572.jpg
02-01-2016  19:08         3.298.561 Vakantie_in_Colombia_573.jpg
02-01-2016  19:08         3.486.060 Vakantie_in_Colombia_574.jpg
02-01-2016  19:08         2.426.250 Vakantie_in_Colombia_575.jpg
02-01-2016  19:08         2.756.684 Vakantie_in_Colombia_576.jpg
02-01-2016  19:08         2.634.085 Vakantie_in_Colombia_577.jpg
02-01-2016  19:08         2.785.157 Vakantie_in_Colombia_578.jpg
02-01-2016  19:08         2.113.991 Vakantie_in_Colombia_579.jpg
02-01-2016  19:08         2.503.527 Vakantie_in_Colombia_580.jpg
02-01-2016  19:08         2.791.616 Vakantie_in_Colombia_581.jpg
02-01-2016  19:09         2.761.368 Vakantie_in_Colombia_583.jpg
02-01-2016  19:09         2.721.959 Vakantie_in_Colombia_584.jpg
02-01-2016  19:09         1.105.599 Vakantie_in_Colombia_585.jpg
              29 File(s)     78.703.691 bytes
               2 Dir(s)  126.288.166.912 bytes free

E:\Freek\Desktop>exiftool "-filename<CreateDate" -d %y%m%d_%H%M%S_%%-c.%%le -r december2015
    1 directories scanned
   29 image files updated

E:\Freek\Desktop>dir december2015
Volume in drive E is Documenten
Volume Serial Number is A47D-51AE

Directory of E:\Freek\Desktop\december2015

04-01-2016  21:53    <DIR>          .
04-01-2016  21:53    <DIR>          ..
02-01-2016  17:45         5.250.107 Vakantie_in_Colombia_556.jpg
02-01-2016  19:08         1.649.264 Vakantie_in_Colombia_557.jpg
02-01-2016  19:08         1.624.371 Vakantie_in_Colombia_558.jpg
02-01-2016  19:08         2.234.924 Vakantie_in_Colombia_559.jpg
02-01-2016  19:08         2.156.591 Vakantie_in_Colombia_560.jpg
02-01-2016  19:08         2.245.291 Vakantie_in_Colombia_561.jpg
02-01-2016  19:08         3.039.110 Vakantie_in_Colombia_562.jpg
02-01-2016  19:08         3.740.317 Vakantie_in_Colombia_563.jpg
02-01-2016  19:08         4.086.950 Vakantie_in_Colombia_564.jpg
02-01-2016  19:08         3.856.697 Vakantie_in_Colombia_565.jpg
02-01-2016  19:08         2.370.375 Vakantie_in_Colombia_566.jpg
02-01-2016  19:08         1.703.632 Vakantie_in_Colombia_567.jpg
02-01-2016  19:08         2.253.508 Vakantie_in_Colombia_568.jpg
02-01-2016  19:08         1.764.792 Vakantie_in_Colombia_569.jpg
02-01-2016  19:08         2.609.610 Vakantie_in_Colombia_570.jpg
02-01-2016  19:08         3.338.737 Vakantie_in_Colombia_571.jpg
02-01-2016  19:08         3.394.558 Vakantie_in_Colombia_572.jpg
02-01-2016  19:08         3.298.561 Vakantie_in_Colombia_573.jpg
02-01-2016  19:08         3.486.060 Vakantie_in_Colombia_574.jpg
02-01-2016  19:08         2.426.250 Vakantie_in_Colombia_575.jpg
02-01-2016  19:08         2.756.684 Vakantie_in_Colombia_576.jpg
02-01-2016  19:08         2.634.085 Vakantie_in_Colombia_577.jpg
02-01-2016  19:08         2.785.157 Vakantie_in_Colombia_578.jpg
02-01-2016  19:08         2.113.991 Vakantie_in_Colombia_579.jpg
02-01-2016  19:08         2.503.527 Vakantie_in_Colombia_580.jpg
02-01-2016  19:08         2.791.616 Vakantie_in_Colombia_581.jpg
02-01-2016  19:09         2.761.368 Vakantie_in_Colombia_583.jpg
02-01-2016  19:09         2.721.959 Vakantie_in_Colombia_584.jpg
02-01-2016  19:09         1.105.599 Vakantie_in_Colombia_585.jpg
              29 File(s)     78.703.691 bytes
               2 Dir(s)  126.288.232.448 bytes free

The weird thing is that when i execute

exiftool -T -filename -createdate -aperture -shutterspeed -iso december2015 > out.txt

the result is:
151215_093944_.jpg   2015:12:15 09:39:44   2.2   1/720   40
151215_094007_.jpg   2015:12:15 09:40:07   2.2   1/506   40
151215_094039_.jpg   2015:12:15 09:40:39   2.2   1/522   40
151215_152413_.jpg   2015:12:15 15:24:13   2.2   1/40   50
151216_102942_.jpg   2015:12:16 10:29:42   2.2   1/1052   40
151217_122033_.jpg   2015:12:17 12:20:33   2.2   1/284   40
151217_122310_.jpg   2015:12:17 12:23:10   2.2   1/120   64
151217_135629_.jpg   2015:12:17 13:56:29   2.2   1/60   50
151217_151310_.jpg   2015:12:17 15:13:10   2.2   1/120   64
151217_153459_.jpg   2015:12:17 15:34:59   2.2   1/30   160
151217_153615_.jpg   2015:12:17 15:36:15   2.2   1/30   40
151217_164331_.jpg   2015:12:17 16:43:31   2.2   1/30   64
151217_164335_.jpg   2015:12:17 16:43:35   2.2   1/30   50
151218_105227_.jpg   2015:12:18 10:52:27   2.2   1/205   40
151218_145800_.jpg   2015:12:18 14:58:00   2.2   1/120   40
151219_115717_.jpg   2015:12:19 11:57:17   2.2   1/496   40
151219_115719_.jpg   2015:12:19 11:57:19   2.2   1/438   40
151219_115741_.jpg   2015:12:19 11:57:41   2.2   1/503   40
151225_160843_.jpg   2015:12:25 16:08:43   2.2   1/30   40
151226_203804_.jpg   2015:12:26 20:38:04   2.2   1/15   2000
151226_204300_.jpg   2015:12:26 20:43:00   2.2   1/15   500
151226_204314_.jpg   2015:12:26 20:43:14   2.2   1/15   500
151226_223620_.jpg   2015:12:26 22:36:20   2.2   1/15   2000
151226_224237_.jpg   2015:12:26 22:42:37   2.2   1/15   40
151227_003207_.jpg   2015:12:27 00:32:07   2.2   1/15   1000
151229_174640_.jpg   2015:12:29 17:46:40   2.2   1/176   40
151229_224841_.jpg   2015:12:29 22:48:41   2.2   1/15   500
151229_224845_.jpg   2015:12:29 22:48:45   2.2   1/15   500
151231_110800_.jpg   2015:12:31 11:08:00   2.2   1/716   40


Even after a reboot and a shutdown and startup it still shows the original filenames in Windows explorer

I should maybe mention that I have used the "bulk rename utility" before to change the file names in that way. |Thats what started all the problems in the first place :)

Title: Re: windows filename not changed
Post by: Phil Harvey on January 04, 2016, 08:11:16 PM
Wow.  That is weird.  I seems as if Windows somehow maintains two names for each file.

Just to confirm:  If you add -filesize# to your exiftool command, are the sizes you see the same as from the "dir" command?

What version of ExifTool are you using?  If it is recent (version 10 or later), try downloading version 9.78 (https://exiftool.org/exiftool-9.87.zip) to see how it behaves.  If it is an older version, then try downloading the current version.

- Phil
Title: Re: windows filename not changed
Post by: bakkergf on January 04, 2016, 08:20:44 PM
It's really weird
I tried running using cmd with administrator access, but no success either

I tried running the older version and I got a pop up from my virusscanner Comodo.
I told the Virus program to trust the application: SUCCESS!!!!

I assume it has to do with the application running in an isolated environment

Thans everyone for the fast replies
Title: Re: windows filename not changed
Post by: Phil Harvey on January 04, 2016, 09:39:21 PM
I wonder if the new version of ExifTool would have worked with the virus software disabled.

But at least you have it working now.

- Phil