-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PowerRename] variable pattern notation for parent folder #8484
Comments
@akulmehta |
A possible scenario is that maybe the filenames are similar (e.g. above you can see all folders have The point is that if the folder name carries some information which you would like to have in the filename. Currently there is no way to do it except maybe using PowerShell. @enricogior I am not sure if this answers your question so please let me know if I missed something. |
I'd like to do exactly this to put all tracks of music albums in one directory. The tracks are named 01_xxx 02_xxx ... in each folder, so I'd like to prefix them with the parent folder name. |
Yes please. Use case: Objective: Move all ico files into the same folder, but adjust file names to be meaningfully unique , ie, prefix file names with parent folder name, so I can later move all files to the same folder. |
I would also love this as a feature. Especially for music. I usually have a .log and a .cue file in album folders and I want them to be named in a specific way. Example: I want them use this syntax: Music/Braxton, Anthony/Ninetet (Yoshi's) 1997, Vol. 1 [CD 1]/ I can achieve this in AdvancedRenamer by using "DirName:1" for .cue files and "DirName:2 - DirName:1" for .log files. |
Another example:
Allowing us to capture and match on the entire path that's been opened (i.e.
FWIW, with
|
Also, useful on measurement generated files that, as others have pointed out, in general, might be saved with non-unique filenames but folder names or their overall path define the properties or attributes, which for various reasons you might want or need to include in the filenames, and then one can (optionally) move all files to a single directory. |
Can we please get this? Was surprised it wasn't already a feature. How about this: $p3 expands to the 3rd directory above the item, etc. Current item: 'C:\Users\Bob\Downloads\Cool Band\New album\Track 1.mp3' And it completely avoids the problem of them attempting to include path separators in the new name. So, renaming from |
You could have many parent folders on the same level, with information you'd rather be in their files' names. Without it, the alternative is manually repeating the same process, with that information put into PowerRename per folder, on N amount of folders. Could be two, could be five, could be fifty. Wasted time, you know? For anyone with a similar need for this feature before it's implemented, Advanced Renamer has it. |
Over 3 years and still not implemented? This seems like such a basic string to include too so I'm shocked that it's still not been added. It would be infinitely useful and from the numerous duplicate requests that have been closed in favour of this one it shows that many other people have a need for this too. |
** USE CASE: IP Security / Doorbell Cameras ** I am processing doorbell camera footage which uses a folder structure based on the date as follows, and segments are stored in 30 second chunks which can then be appended together on the fly and transmitted. As it's a building interior the camera is activated multiple times a day by neighbors and my family. In the photo below, you are seeing only activations on Feb 6th, 2023 between 8 am and 5 pm, the folder structures are massive and filled with tiny files that if contiguous need to be concatenated together to reform the whole video.
In this scenario (especially for folks with multiple cameras, this is just a single apartment doorbell camera), it would be great to use PowerRename to bulk add the YYYY-MM-DD portion to each of these files. so that I can put them collectively into a single folder for further processing. As you note as well, this style of structure is very common in sensor data and in my professional life I have dealt with similar outputs on devices such as blood pressure cuffs, laboratory test results, logs of various forms. Folks often end up resorting to learning basic command-line or using a tool like R or Python for these types of tasks, but some folks also accidentally delete, overwrite, etc their data in the attempt. It would be nice to have a more intuitive and preview-provided method to these types of bulk updates. Thanks! |
📝 Description
Similar to File Creation Date Replace Notation, have a variable pattern notation
$PF
(Parent Folder) which can be used in theReplace with:
field to add the parent folder name to the output renamed files.Example
Current directory
Perform a regex search like :
(.*).png
, which captures the filename into variable$1
Replace with:
$PF_$1.png
Expected output:
If you'd like to see this feature implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: