DonationCoder.com Software > Post New Requests Here
Move files to folders named after part of filename
dcwul62:
Hi Folks,
I need to move a lot (i mean a LOT) of files that all look like these:
Some FileName 1888-0010 31121888.pdf
Some FileName 1888-0009 31121888.pdf
Some FileName 1888-0008 31121888.pdf
Some FileName 1888-0007 31121888.pdf
Some FileName 1888-0006 31121888.pdf
Some FileName 1888-0005 31121888.pdf
Some FileName 1888-0004 31121888.pdf
Some FileName 1974-0360 31121974.pdf
Some FileName 1974-0361 31121974.pdf
Some FileName 1975-0001 31121975.pdf
Some FileName 1975-0002 31121975.pdf
Some FileName 1975-0003 31121975.pdf
to subfolders named after the first 3 words, like these
Some FileName 1888
Some FileName 1974
Some FileName 1975
Any suggestions??
thanks
-
tomos:
(just for the record) something comparable was requested lately:
Hello. Would it be possible to add a feature to find common text between files and use that as an name for the folder?
eg we have files
[Chemistry] Workbook 01.rar
[Chemistry] Workbook 02.rar
[Chemistry] Workbook 03.rar
So the new folder is named [Chemistry] Workbook.-xd1986k (November 15, 2014, 10:26 AM)
--- End quote ---
This is doable. However, in your example, technically, the common text would be "[Chemistry] Workbook 0" right?
-skwire (November 15, 2014, 09:48 PM)
--- End quote ---
4wd:
Um, you have DOpus why don't you just rename them into the folders?
dcwul62:
Wonderful!!
I have been puzzling about this whole morning!
Really, I could not figure this out.
Thank you so much. This way is soo much easier indeed.
After trying this that and I don't what (even went as far as to download the drag and drop utility from this site, but left that, cud not figure out how it works)
I just now figured out a context menu item like this Rename REGEXP PATTERN "(.+\d{4})-(\d{4})(\s)(\d{8})\.(.+)" TO \1\\\0
which is much more complicated.
Regretfully the setfoldate would not work here.
Some FileName 1888-0010 31121888.pdf
Some FileName 1888-0009 31121888.pdf
Some FileName 1888-0008 31121888.pdf
results in folder
Some filename (without year)
So I had to try and figure out something else.
Thanks
-
4wd:
I just now figured out a context menu item like this Rename REGEXP PATTERN "(.+\d{4})-(\d{4})(\s)(\d{8})\.(.+)" TO \1\\\0
which is much more complicated.-dcwul62 (November 25, 2014, 07:09 AM)
--- End quote ---
Why did you make it so complicated?
Regretfully the setfoldate would not work here.
--- End quote ---
Why would it, they're files not folders.
Navigation
[0] Message Index
[#] Next page
Go to full version