I'm not sure about dired-mode , but you can execute a simple script in the *scratch* buffer. Since you are replacing existing file names with different names, I recommend that you first rename all ant files, and then start with these names:
(progn (dotimes (i 100) (let ((file-name (concat (number-to-string i) ".bmp"))) (rename-file file-name (concat "old" file-name)))) (dotimes (i 100) (let ((file-name-old (concat "old" (number-to-string i) ".bmp")) (file-name-new (concat (number-to-string (- 99 i)) ".bmp"))) (rename-file file-name-old file-name-new))))
If you copy this to the *scratch* buffer and, after the expression you press Cx Ce , this code will do it for you.
source share