I had a bunch of photos that I wanted to arrange by date taken. I had hoped that Batch Rename with a template "<date taken>\<Filename>" would do it, but alas, it did not create any directories, leaving the files untouched.
"<Directory><date taken>\<Filename>" didn't do what I wanted either.
Please have XnView create directories, if there's a directory separator in the template.
thanks!
Batch rename to create directories (Windows)
Moderators: XnTriq, helmut, xnview
-
- Posts: 8705
- Joined: Sun Oct 12, 2003 6:47 pm
- Location: Frankfurt, Germany
Re: Batch rename to create directories (Windows)
Specifying a pathname and create directories might be useful in some cases and make batch renaming even more powerful.fecund wrote:...
"<Directory><date taken>\<Filename>" didn't do what I wanted either.
Please have XnView create directories, if there's a directory separator in the template.
Currently we have name template, if possible, it should be made clear to the user that specifying paths is possible by having a separate entry field "Path template". Naturally, default for this would be current directory (Radio button and/or additional place holder "<Current dir>").
I don't think you need a separate field. Basically,
Path Template: XXX
Filename Template: ZZZ
is the same as
Path & File Template: XXX/ZZZ
(where / is the directory separator for the platform)
and keeping the interface simple means less confusion for users and less work for coders.
Just need to know what the directory separator is for your platform (/ or \ or , need to be able to call the equivalent of "mkpath" or "mkdir -p" on Windows & Mac, and need to check for "directory not found" error on the rename and handle that exception.
Path Template: XXX
Filename Template: ZZZ
is the same as
Path & File Template: XXX/ZZZ
(where / is the directory separator for the platform)
and keeping the interface simple means less confusion for users and less work for coders.
Just need to know what the directory separator is for your platform (/ or \ or , need to be able to call the equivalent of "mkpath" or "mkdir -p" on Windows & Mac, and need to check for "directory not found" error on the rename and handle that exception.
-
- Posts: 8705
- Joined: Sun Oct 12, 2003 6:47 pm
- Location: Frankfurt, Germany
Seemingly a simpler interface but not really simple for users to understand. Many users would never find this extra feature. And if a novice users happens to type in a "" in the file template, you can display a warning message if you have two fields.Anonymous wrote:I don't think you need a separate field. Basically,
Path Template: XXX
Filename Template: ZZZ
is the same as
Path & File Template: XXX/ZZZ
Simple interface is very important (see above). I never care for the coders.and keeping the interface simple means less confusion for users and less work for coders.