I'm not sure of dired-mode
, but you can execute a simple script in the *scratch*
buffer. As you're replacing existing file names with different names, I recommend you to do a first rename to all the files ant then start right with those 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 that to the *scratch*
buffer and, past the expression you push C-x C-e, that code will do it for you.