Renamer Move syntax - adding text on end

Started by Stefanjan, July 06, 2021, 02:59:27 PM

Previous topic - Next topic

Stefanjan

I plan to use the Renamer tool to clean up my folder structure.

The following syntax in Move D:\Photos Prior Years\{File.DateTime|format:YYYY}\{File.DateTime|format:YYYY-MM-DD}

Creates a folder:

D:
2004
   2004-01-02

Instead of above, is it possible to create a folder "2004-01-02 ¦ " So that I can then manually append a description.

Fails if I add " ¦ "

Mario

Keep in mind that | has a special meaning in variables. You have to escape it with ~ i guess.
Also, the | is not allowed in file or folder names in Windows. It is used to pipe input and output.

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Stefanjan

I was using "¦" not "|"
The former is OK in folder paths, the latter not.

Further experimentation, I found that it wasn't the "¦" causing an issue but the trailing space, so "D:\Photos Prior Years\{File.DateTime|format:YYYY}\{File.DateTime|format:YYYY-MM-DD} ¦" is OK, but with a trailing space "D:\Photos Prior Years\{File.DateTime|format:YYYY}\{File.DateTime|format:YYYY-MM-DD} ¦ " causes the move to fail

Because of course a trailing spaced is not permitted in a Windows file name.

Problem solved, I just type a space when I am editing the folder name to input a description.

By the way, I just love the folder renamer for moving files. So powerful!