New user, need real simple set up

Started by Archive, May 12, 2010, 08:54:35 AM

Previous topic - Next topic

Archive

[Originally posted by bgglaser on 2009-05-14 23:32:29-07]

Trying to create a batch file to simple copy my files from my card reader to my pictures folder in the order YYYY\MMDD\MMDDYYYY001.jpg, keeping the last three digits growing depending on the amount of pitures.
I have tried searching and tried various programs and have not gotten anything to work.

Archive

[Originally posted by exiftool on 2009-05-15 11:16:48-07]

The following command comes very close to doing what you want.
The only difference is that files are moved instead of copied:

Code:
exiftool -d C:/pictures/%Y/%m%d/%m%d%Y%%.3c.jpg "-filename<datetimeoriginal" -ext jpg -r -v D:\

This command will take all JPG images on drive D: (assuming this is your
card reader drive) and move them to C:\pictures with subdirectories
as you have specified.

The -r option causes images in subdirectories on the card
to be moved too, and I threw in the -v option to make exiftool
will print verbose messages so you can see where each image goes.

Note that exiftool allows either forward or backward slashes for
directory separators, so it shouldn't matter which you use.

- Phil

Archive

[Originally posted by bgglaser on 2009-05-15 19:09:25-07]

Something is off pictures came out(literally) mmT000.jpg, did not create any folders other than C:\pictures. Trying to run in windows with batch file...Thanks for your help on this

Archive

[Originally posted by exiftool on 2009-05-15 23:26:17-07]

Windows will eat single '%' characters in the batch file, so you
must (literally) double up all the '%' characters in the command.
Yes, this means things like "%%%%.c".

- Phil

Archive

[Originally posted by bgglaser on 2009-05-16 01:16:02-07]

First of all thank you for your help.

I copied your script to a batch file and got the other issue, yet if I paste it in a command file it works only if I change the directory to C:windows first. But if I create a batch file with cd: C:\windows and then your line it works great....Any ideas on that one? My goal is to make this as easy as possible for the wife...

Archive

[Originally posted by exiftool on 2009-05-16 15:33:21-07]

If you don't "cd c:\windows", what exactly happens?  C:\windows
should be in the path, so I don't know why it wouldn't work
without it.  (Assuming that you moved "exiftool.exe" to
the c:\windows directory.)

- Phil