Community
You can try the following:
(defun renlayout (old-str new-str / ll n new_n)
(setq ll (layoutlist))
(foreach n ll
(setq new_n (vl-string-subst new-str old-str n))
(command "_.-layout" "_r" n new_n)
) ;_ end of foreach
) ;_ end of defun
old-str is the old string eg E01 and new-str is the new string eg E02
Angeliki