Is there a way to, when batch renaming multiple files, add the name of the container folder to the files?
E.g. I have
Banana/001.txt
Banana/002.txt
Orange/001.txt
and am looking for a way to quickly get
Banana/Banana 001.txt
Banana/Banana 002.txt
Orange/Orange 001.txt
Would it be something like #parent-name:? Except that one doesn't seem to do anything or I don't understand it.
Adding name of folder to file name
Re: Adding name of folder to file name
See, Add folder name to rename files.
Note the Rename vs. Advanced Move...
Note the Rename vs. Advanced Move...
Re: Adding name of folder to file name
Select your banana files
In Everything, from the Edit menu, under the Advanced submenu, click Advanced Move to folder.
In the Advanced Move to:
Check regular expressions.
Please try the following old format:
^(.*)\\(.*?)\\(.*?)$
Please try the following new format:
\1\\\2\\\2 - \3
Double and triple check the newly generated filenames.
Click OK.
#parent-name: is currently not working, thanks for letting me know, I've put this on my things to fix list.
In Everything, from the Edit menu, under the Advanced submenu, click Advanced Move to folder.
In the Advanced Move to:
Check regular expressions.
Please try the following old format:
^(.*)\\(.*?)\\(.*?)$
Please try the following new format:
\1\\\2\\\2 - \3
Double and triple check the newly generated filenames.
Click OK.
#parent-name: is currently not working, thanks for letting me know, I've put this on my things to fix list.
-
- Posts: 4
- Joined: Wed Jun 09, 2021 2:26 pm
Re: Adding name of folder to file name
That does work, thanks! It would take me years to figure that out myself. I never learned regex.
Re: Adding name of folder to file name
Everything 1.5.0.1264a fixes an issue with #parent-name: and other 'index' properties not working.