Windows command line problem

Started by cirrusflyer, November 10, 2013, 07:40:27 PM

Previous topic - Next topic

cirrusflyer

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\

Phil Harvey

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



...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

Also switched a slash to a backslash after the first %%d.  It could be windows reading /% as something unintended.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype