You are not logged in.
Q: I want to move files to folders according an part of there name.
The new folder can be a subfolder in the current directory.
The folder name would need to be a part of the file name, just everything after behind the last - dash.
For "Letterhead - Set 1.jpg" e.g. create a folder with the name "Set 1" and place the file within that folder.
A: There are several ways to do this:
All use the trick to insert an "\" in the new file name at the place where you want to have an folder.
(Don't trust my work, always test with test files in temp folder first!
FROM:
X:\Folder\Business Card - Set 1.jpg
X:\Folder\Letterhead - Set 1.jpg
TO:
X:\Folder\Set 1\Business Card - Set 1.jpg
X:\Folder\Set 1\Letterhead - Set 1.jpg
DO:
Rule RegEx:
Expres: (.+) - (.+)
Replace: $2\\$1 - $2
Or
Rule Rearrange
Split using (o)Delimiters [ - ]
New Pattern [$2\$1 - $2]
===================================
FROM:
X:\Folder\Business Card - Set 1.jpg
X:\Folder\Letterhead - Set 1.jpg
TO:
X:\Folder\Set 1\Business Card.jpg
X:\Folder\Set 1\Letterhead.jpg
DO:
Rule RegEx:
Expres: (.+) - (.+)
Replace: $2\\$1
Or
Rule Rearrange
Split using (o)Delimiters [ - ]
New Pattern [$2\$1]
HTH?
Note: you can also insert full absolute paths like "X:\My Folder\$2\$1 - $2" or even relative paths like "..\$2\$1 - $2"
.
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
Hi,
I am trying to create folders from file name
Patterns
series name\series name s08 e10 blah blah.avi
series name\series name s08 e10
I am trying to do this with regex
Expression
(.+) (S\d\d E\d\d .+)
Replace
$1\\$1 $2
Skip extension
What am I doing wrong here?
Thanks
Rich
Offline
Hi Rich, welcome!
R> What am I doing wrong here?
Don't know. My crystal bowl is broken last night.
So please tell me: what is your problem? What doesn't work?
The regex is valid and works for me as you have posted.
Be sure to not tick "[ ] case-sensitive"
Be sure to have write access to that folder.
Mention which OS you use. UAC on? Which ReNamer version?
Maybe you find an answer in our wiki?
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
Sorry my mistake.
I was looking in the folder column and didnt see the \ in the new filename column.
However how would I be able to create this pattern with series number
Patterns
series name\s08\series name s08 e10 blah blah.avi
series name\s08\series name s08 e10
or indeed when i have no series details sort the following files into these folders.
History Ch Russia Land Of The Tsars
History Ch The Crusades Crescent And The Cross
History Ch Russia Land Of The Tsars E01 Of4 avi
History Ch Russia Land Of The Tsars E02 Of4 avi
History Ch Russia Land Of The Tsars E03 Of4 avi
History Ch Russia Land Of The Tsars E04 Of4 avi
History Ch The Crusades Crescent And The Cross E01 Of4 - Disc One The First Crusade Part 1.avi
History Ch The Crusades Crescent And The Cross E02 Of4 - Disc One The First Crusade Part 2.avi
History Ch The Crusades Crescent And The Cross E03 Of4 - Disc Two The Second And Third Crusades.avi
Thanks
Rich
Last edited by richman (2012-12-04 14:06)
Offline
Please describe step-by-step what you want.
How do it looks "before" and how should it look "after" the modification.
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
Basically I would like to sort into folders, with series number where possible or if no series match all names up to episode and put into the same folder.
Before
series name s08 e10 blah blah.avi
History Ch Russia Land Of The Tsars E01 Of4 avi
History Ch Russia Land Of The Tsars E02 Of4 avi
History Ch The Crusades Crescent And The Cross E01 Of4 - Disc One The First Crusade Part 1.avi
History Ch The Crusades Crescent And The Cross E02 Of4 - Disc One The First Crusade Part 2.avi
History Ch The Crusades Crescent And The Cross E03 Of4 - Disc Two The Second And Third Crusades.avi
After
History Ch Russia Land Of The Tsars \ History Ch Russia Land Of The Tsars E01 Of4 avi
History Ch Russia Land Of The Tsars \ History Ch Russia Land Of The Tsars E02 Of4 avi
History Ch The Crusades Crescent And The Cross \ History Ch The Crusades Crescent And The Cross E01 Of4 - Disc One The First Crusade Part 1.avi
History Ch The Crusades Crescent And The Cross \ History Ch The Crusades Crescent And The Cross E02 Of4 - Disc One The First Crusade Part 2.avi
series name \ s08 \ series name s08 e10 blah blah.avi
Thank you,
Rich
Offline
You mean
Take all filenames who are same before the "E\d\d" part into an own sub folder.
IF there is found an string space+"S"+Digit+space THEN create an additional series sub folder.
Before
main\series nameA s08 e10 blah.avi
main\series nameB E01 Of4.avi
After
main\series nameA \ s08 \ series nameA s08 e10 blah.avi
main\series nameB \ series nameB E01 Of4.avi
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
Stefan,
Yes that's what i would like to achieve.
Offline
Sorry, not much time this days. Please be patient (and remind me if needed)
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
No problems.
Can this be done via Regex or is this a Pascal script?
Offline