Adding a Character to only Certain Filenames

Ok so here is what I want to do. Maybe someone here could suggest a way.

In some folder I have the following

1-file.txt
01-file.txt
2-data.txt
02-data.txt
3-anything.txt
03-anything.txt

etc, you get the point. I would like to do this. add a '0' to the front of EVERY file that DOESNT already have one. If this causes a double (as it would in the above case) instead of renaming it deletes it. however I dont want to add a 0 to 10, 11, 12, etc

my file naming is consitent so im thinking this logic

IF "file name" starts with "1-" change to "01-"
IF "old file name" = "new file name" delete file

anyhelp (ive heard maybe this could be done with regular expressions but i know nothign about them) would be appreciated

The rename settings below will do it, except that they automatically add a number to the end of any conflicting names instead of deleting the files.

If you really want to delete conflicting files then I think you would have to use a VBScript rename button (which would have to be very careful not to delete names which didn't change). Probably not worth it unless you really need it.

Here's the regexp:

Old name: ^[0-9][^0-9].*
New name: 0\0
Type: Regular Expressions
[x] Automatically rename if new filename exists




thanks now i can just do a search for (1) or (2) and delte.. worked nicely

actualy where is the rename thing... im new to opus

Select your files and click on the toolbar:

awesome... now one more thing

what if its like this

E:\Folder1\Folder\1-File.txt
E:\Folder1\Folder\01-File.txt
E:\Folder2\Folder\1-File.txt
E:\Folder2\Folder\01-File.txt
E:\Folder3\Folder\1-File.txt
E:\Folder3\Folder\01-File.txt

is there anyway i can start in E:\ and tell it to look in all the subfolders and rename the FILES not the folders

The way I would do it would be to create a new button in customize mode and then give it the following command:

Set FLATVIEW=MixedNoFolders,Toggle

Exit customize mode, navigate to the folder you want, press the button which puts Opus in flat view mode for files only, select the files, and rename them as you did before. Then if necessary, click your flat view button again to reset the view mode back to normal.

Flat View is the way to do it, as John says.

You don't need to create a button, though. The default menus already have items for Flat View under View -> Flat View.

ok following all the advice everything worked...

i have so much to learn about DOpus. Another reason I am glad I purchased this amazing thing.

Thanks for all the help.