#1 2020-06-24 06:21

dannician
Member
Registered: 2019-07-06
Posts: 34

Skip path levels when using Insert FolderPath

When inserting file name by folder path can the path position or level be targeted for removal? 

So if I’m storing pictures in parent folders with different names like this:

C:\Photos\Parent Folder\  (the parent folder name changes with every photo shoot)

It’s easy to remove the parts of the folder path that do not change but can we remove the parent folder names that change?


Can we tell ReNamer to skip levels in the folder path? Perhaps we can tell ReNamer to start the folder path at a certain postition in the path?

Last edited by dannician (2020-06-24 06:23)

Offline

#2 2020-06-24 06:42

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: Skip path levels when using Insert FolderPath

Can you provide an example of input paths and desired output paths?

At the moment it sounds like you are trying to move files down a folder level, removing the first parent folder from the path. Is that right?

Offline

#3 2020-06-24 15:34

dannician
Member
Registered: 2019-07-06
Posts: 34

Re: Skip path levels when using Insert FolderPath

I want to remove the pattern of:

C:\Photos\Parent\

when the name for "Parent" is different each time.

The pattern of the path is the same, but the word used for the "Parent" changes.  Can we remove by a pattern that targets the text in between the second and third \?  Maybe a RegEx would do this?

Offline

#4 2020-06-24 17:39

dannician
Member
Registered: 2019-07-06
Posts: 34

Re: Skip path levels when using Insert FolderPath

I am able to accomplish this with two steps.  The first step is to remove the fixed part of the path

C:\Photos\

This leaves

Parent\

which can be removed with the Delete starting at position 1 and using \ as the delimiter.

Last edited by dannician (2020-06-24 17:58)

Offline

#5 2020-06-27 17:58

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: Skip path levels when using Insert FolderPath

From your description so far it looks like you insert the path first and then delete it. This begs a question - why insert it at all?

I still don't see where the problem is. Maybe a complete example would help demonstrate your issue.

Offline

#6 2020-06-29 04:58

dannician
Member
Registered: 2019-07-06
Posts: 34

Re: Skip path levels when using Insert FolderPath

I am only removing a part of the inserted FolderPath, not the whole thing.  Part of the path is retained in the new name.

Offline

#7 2020-06-29 08:31

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: Skip path levels when using Insert FolderPath

dannician wrote:

I am only removing a part of the inserted FolderPath, not the whole thing.  Part of the path is retained in the new name.

You should have simply provided a complete example, because your initial description didn't demonstrate that at all.

For example:

C:\Photos\KeepThisPart\Parent\File.ext   ->   KeepThisPartFile.ext

Anyhow, it looks like you have found a solution in the meantime.

Offline

Board footer

Powered by FluxBB