#1 2009-06-14 00:34

tapira1
Member
Registered: 2009-06-14
Posts: 2

Changing path with file renaming

Hi, I am writing to request your help to solve this problem.
Have a folder which inside has 1000 folders, each one with a pdf file, so the path of the files and folders looks like this:

bigfolder/folder1/file1.pdf
bigfolder/folder2/file2.pdf
bigfolder/folder3/file3.pdf
bigfolder/folder4/file4.pdf

where folder#is a set of 10 characters and file# has 8 characters.

I would like to "extract" each file from its folder, rename it with the name of the folder and place the whole in the big folder, so the final path of the files should be:

bigfolder/folder1.pdf
bigfolder/folder2.pdf
bigfolder/folder3.pdf
bigfolder/folder4.pdf

The empty folders will be then removed manually.

Could anybody please illustrate how to do this with the ReNamer?
Thanks a lot in advance!!!

Offline

#2 2009-06-14 21:40

krtek
Senior Member
From: Łódź (Poland)
Registered: 2008-02-21
Posts: 262

Re: Changing path with file renaming

If you have just one file per folder you can do it that way:

1. Delete rule:
From position 1, till the end, skip extention

2. Insert rule:
What:      Full_path_to_bigfolder\:File_FolderName:
as Prefix

The path needs to start from drive name and end with "\", eg. d:\bigfolder\
:File_FolderName: - is a MetaTag which you can type as above or select from Insert-MetaTag dialog

Voila!


Regular Expressions are not as hard to understand as you may think. Check ReNamer's manual or nice Regular Expressions tutorial for more info and start to use full power of applications that use them (like ReNamer, Mp3Tag and so on).

Offline

#3 2009-06-15 00:19

tapira1
Member
Registered: 2009-06-14
Posts: 2

Re: Changing path with file renaming

Thanks for this very useful tip!!!

Offline

Board footer

Powered by FluxBB