[Originally posted by wrest on 2008-06-24 11:52:19-07]
I'm trying to use exiftool under Windows XP SP3 to automate pictures download from flash card.
Using arguments like this (double % is to pass % from .bat to exiftool
exiftool -r "-FileName<CreateDate" -d c:\jpg\%%Y\%%m(%%B)\%%d-%%b-%%y\ DCIM/100MSDCF/*.jpg
I expect that directory with name like c:\jpg\2008\01(January)\01-Jan-08\ created
That's O'k if I configure Windows XP (control panel - regional settings - language and standards) to use "English" (what I think is user locale).
The problem is that other software requires "Russian" as user locale.
Is it possible to somehow change user locale for just exiftool using command line only tools?
I start exiftool from .bat file that is run automatically (through autorun.inf) when flash memory is inserted.
Thank you,
Dmitry.
[Originally posted by exiftool on 2008-06-24 14:12:54-07]
On a Unix system, you can set the LC_TIME environment variable to
control the behaviour of the POSIX strftime function (which is what
exiftool is using). This may also work in Windows, but I don't know
for sure. I'll cross my fingers for you.
- Phil
[Originally posted by exiftool on 2008-06-24 14:19:53-07]I did a bit more checking, and it may be safer to set LC_ALL instead
since this can override LC_TIME. Set this to "C" for the standard english
names. In a Unix csh, it looks like this:
setenv LC_ALL C
exiftool ...
I tested this and it works for me, but I'm running on OS X right now.
- Phil
[Originally posted by wrest on 2008-06-24 16:48:17-07]Phil,
Thank you for support.
There is no environment variable changeable in Windows XP for that AFAIK
But there is registry key that acts instant

I found a solution that looks like that: (contents of .bat file)
rem !---- exporting existing registry key for regional options in whole
reg export "HKCU\Control Panel\International" international.reg
rem !---- change registry key value "Locale" to "English" locale which value is 00000409
reg add "HKCU\Control Panel\International" /v Locale /t REG_SZ /d 00000409 /f
rem !---- do files moving with exiftool
exiftool -v0 -r "-FileName<CreateDate" -d c:\jpg\%%Y\%%m(%%B)\%%d-%%b-%%y\ DCIM/100MSDCF/*.jpg
exiftool -v0 -r "-FileName<CreateDate" -d c:\jpg\%%Y\%%m(%%B)\%%d-%%b-%%y\raw\ DCIM/100MSDCF/*.arw
rem !---- restore registry key in whole
reg import international.reg
rem !---- delete temporary file
del international.reg /f/q
[Originally posted by exiftool on 2008-06-24 16:57:12-07]
That was a bit more complex than setting an environment variable,
but I'm glad you found a solution, and maybe other Windows users
will find this helpful. Well done.