Prefix file numbering

I want to prefix file with a number and preferably a string '. ' (point + space)

0001. file1
0002. file2
0003. file3
0004. file4

Optionally.
No idea this is possible....
The files that have to be renamed are in folders (all at the same level)
All the folders and the files within them are sorted correctly.
I want to number all those files as shown above.

If the first folder ends with the number 0088, then the next folder should start numbering with 0089

Numbering files when renaming:

https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Numbering_Files.htm

And there's a checkbox in the Rename dialog for renaming files within folders. Or you can use Find or Flat View to make a list of everything you want to rename.

Flat view sorts the files. The folders are sorted and inside the folders the files are sorted. And they should be numbered that way.

Renaming the files inside the subfolders, restarts numbering in each folder.
If the first folder ends with 00020, the next folder should start with 00021.

It sorts them however you want to sort them. You can sort by Full Path or Location in Flat View.

Sorry I wasn't clear enough
Flat view does show everything correctly.
But when I select the files and click the rename button the files show in a different order. Perhaps by age

Currently it looks like this.
1folder
file01
file02
file03
2folder
foto1
foto2
foto3
foto4

When I do flat view I see the correct order

Wanted result

  1. file01
  2. file02
  3. file03
  4. foto1
  5. foto2
  6. foto3
  7. foto4

If I open the rename window the not yet renamed files

foto1
foto2
foto3
foto4
file01
file02
file03

They should go into the Rename dialog in the same order they are in the file display:

Found the solution.
The files always displayed correctly in the lister.
But this time I sorted them using the location column.
It looks the same, in the lister but in the rename window it's as it should be.
Perfectly renamed now! Thanks Leo!

Next question.
Now I've some cleaning up to do in the rename window.
Simple stuff I always did by selecting whole columns by dragging my mouse.
That no longer seems to work. It only selects the file my mouse pointer is over.
Likely I changed a setting. But which one....?

Make sure Use preview list to build macros is turned on.

YEAH!

Thanks Jon!