Renaming files using current Parent Directory in name but not rest of path

Started by chambrick, May 21, 2014, 03:16:56 PM

Previous topic - Next topic

chambrick

That creates the folder MyEvent then creates a subfolder -2012-07 and puts the image in that.

...rather than a folder named MyEvent-2012-07

Phil Harvey

It shouldn't.  The "/" creates a new folder.  But I used a "-" between MyEvent and the year (%Y).

- 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 ($).

chambrick

MAN.  ...and I used to be a programmer.

I didn't see it until just now but I left a "/" right before the "-".

Got it.

Thanks again very much.