Topic: Create Folder-Structure from File name

Hi rplr,
thank you again for your very usefull tool and all your hard work!

I searched just the help for an feature i missed:
how can i create folders out of file names and copy/move files into them?

f.e.:

I have the file
BEATLES (New Album) - Song One.mp4

now i wanna move this file into a NEW folder structur with an syntax maybe like this:
E:\ {%b[1]} \ {%b[2]} \ %b[1] - %b[3].%e
[Rename] [Rename and move]

to get:
E:\BEATLES\(New Album)\BEATLES - Song One.mp4

Is this possible
or can you implement this please?


merry x-mas to all
Stefan

Re: Create Folder-Structure from File name

Hello Stefan,

This feature (move) will be present in the next release.

Based on your example, the expression will look like this:
E:\\%b[1]\\%b[2]\\%b[1] - %b[3].%e

Best regards

Re: Create Folder-Structure from File name

Thanks for your feedback (and your work)

You are my hero!

Some help for your implementation:
- will you also support relative paths?
i.e.

Original:
X:\MP4\New\BEATLES (New Album) - Song One.mp4
Expression:
\\NewSubFolder_%b[1]\\%b[2]\\%b[1] - %b[3].%e
Result:
X:\MP4\New\NewSubFolder_BEATLES\(New Album)\BEATLES - Song One.mp4
Explanation:
Create a new SubFolder based on the first part of the file name and move the files there.

and


Original:
X:\MP4\New\Oldies\BEATLES (New Album) - Song One.mp4
Expression:
..\\..\\NewSubFolder_%b[1]\\%b[2]\\%b[1] - %b[3].%e
Result:
X:\MP4\NewSubFolder_BEATLES\(New Album)\BEATLES - Song One.mp4
Explanation:
Go to folders up (Oldies + New) and create a new SubFolder in MP4 based on the first part of the file name.

- -

Second suggestion:
please support COPY here also, not only MOVing

Re: Create Folder-Structure from File name

As long as the "computed" name is a valid path+file name, all should be fine.
Non existing folders are created.
For now the copy is not supported. Is it really useful ?

Best regards

Re: Create Folder-Structure from File name

Thanks for the answer!

> For now the copy is not supported. Is it really useful ?

1) add e.g. .bak at the end of file name AND copy to an Backup folder

2) rename MP3 files (or prefix with number) AND copy to an export folder (e.g. USB-MP3-Player)

3) rename files to an sequence (file01.txt, file02.txt, ...) AND copy to %tmp%
     for to use in TotalCommander (Combine)

4) have a file for test issues, rename to other name with counter AND create copys
OR e.g.:
File-Original.vbs
rename to File-<counter001>.vbs till File-<counter05>.vbs

5) i have e.g.
Template_X.doc
Template_X.xls
Files_x.txt

now i wanna rename this templates to e.g
Project-A5_01.doc
Project-A5_01.xls
Project-A5_Files_01.txt
AND create copies of them to leave the template files as template for the next project

6) ehm, i think you understand the endless power of your tool ;-)

Stefan

Re: Create Folder-Structure from File name

In your example, when you say "move" and "copy" you mean "move" or "copy with the future name", right ?
I'll have a look at the "copy" feature.
Maybe won't it be in the 2.00

Best regards.

Re: Create Folder-Structure from File name

Thanks for your answers!!!

>when you say "move" and "copy" you mean???
Oh , what have i written(think)?
Let's think together to make that clear:

MOVE is Rename to "future name"   to a new file   in a new location,  deleting the old file.
COPY is Rename to "future name"   to a new file   (here or on an other place)  and LEAVE the old file.
RENAME is rename and overwrite the old file.

"New file" binary format is depending to the new extension: *.exe, .*MP5, *.txt. (but this is standard, right?)

greeds
stefan

BTW:
actually i have a new example:
6)
having
aTool.exe
bApp.exe
cProg.exe
copy to new file with: *_info.txt
getting
aTool_info.txt
bApp_info.txt
cProg_info.txt

Re: Create Folder-Structure from File name

Hello,

I've just added the "copy" feature beside the "move" one of the 2.00.
It will be usable from command line too.

Thanks for this suggestion.

Re: Create Folder-Structure from File name

Very fine ;-)
I thank YOU.