ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: cirrusflyer on November 10, 2013, 07:40:27 PM

Title: Windows command line problem
Post by: cirrusflyer on November 10, 2013, 07:40:27 PM
Hello, I have a command line working on the Mac side, but can't figure out what's wrong on the Windows side.  I've looked at the forums and docs too.

Here's what I have so far for the Windows version:

exiftool -r -d C:\Users\RA\photos\%%Y\%%Y-%%m\%%Y-%%m-%%d/%%Y%%m%%d_%%H%%M%%S "-filename<${CreateDate}_${Make}_${Model;tr/ /_/;s/__+/_/g}%%-c.%%e" C:\Users\RA\test\

All the "\" are ignored.

But without the path, this runs perfectly below to rename the files and keep them in the same directory:

exiftool -r -d %%Y%%m%%d_%%H%%M%%S "-filename<${CreateDate}_${Make;}_${Model;tr/ /_/;s/__+/_/g}%%-c.%%e" C:\Users\RA\test\

UPDATE.  I seem to have this working like this:

exiftool -r -d C:\Users\RA\photos\%%Y\%%Y-%%m\%%Y-%%m-%%d\%%Y%%m%%d_%%H%%M%%S "-filename<${CreateDate}_${Make;}_${Model;tr/ /_/;s/__+/_/g}%%-c.%%e" C:\Users\RA\test\
Title: Re: Windows command line problem
Post by: Phil Harvey on November 10, 2013, 08:51:37 PM
So all you did to get it working was apply the default character filter to Make by adding the semicolon?  This is the only difference I see between the commands.

- Phil



Title: Re: Windows command line problem
Post by: StarGeek on November 12, 2013, 04:08:17 PM
Also switched a slash to a backslash after the first %%d.  It could be windows reading /% as something unintended.