-I want to move them to folders named after the first part of the filename (everything before the date).
-Remove the dots and underscores in the foldernames.
-Files should not be renamed.
This is what I have done so far, which works, but only on 1 file at a time (trying to do multiple selected returns the error " can not create file when exists ")
There might be a better way to remove the dots and underscores from the foldernames but if you don't care to remove them from all folders in the current directory this one is working for me:
Thanks for the help, this works much better. Still trying to get the first part going before I attempt the folder, since I came across odd issue I can't work out.
I tried repeating the line, one with / one without a space but it pulls errors, though it works.
I thought that (.*) would have matched 0 or more of any character (including a space). It kind of does, but not 0 or more characters ending in a space.
How could I say 0 or more characters possibly ending in a space? So it will work on both these files:
For part of your RegEx find criteria, you could use something like
([^0-9]*)
which will find anything including a space up until the first digit. However then in your rename to part you're likely going to run into a snag if Opus tries to create a new subfolder whose name ends in a space as ending spaces are not allowed in folder names.
This eliminates the '_' , '.' ( not really needed ), as well as the ' ' at the end of the folder names[/quote]
Thanks so, so much Scred for all those modifications. Both the last 2 work perfect with the space issue. Love this new button, it's so efficient, and going to save so much time.
[quote="kundal"]There might be a better way to remove the dots and underscores from the foldernames but if you don't care to remove them from all folders in the current directory this one is working for me:
Silly note: but if you're running the sort of commands shown directly above from an Opus button/hotkey/etc... I don't believe there's any need to prefix dopusrt with /home and include the executable exe extension. You should be able to use just dopusrt /cmd instead of /home\dopusrt.exe /cmd...