file01 → file03 file02 → file03 (file03 is already used) Detecting cycle renaming (Solved by a two-pass renaming). file01 → file02 (file02 already exists in file-system) file02 → file03 (file03 already exists in file-system) file03 → file01 (file01 already exists in file-system) Two-pass renaming Two-pass renaming uses a temporary filename (that doesn't exist in file-system) as shown below. (→ means: renamed to) First pass file01 → file01_AAAAA file02 → file02_AAAAB file03 → file03_AAAAC Second pass file01_AAAAA → file02 file02_AAAAB → file03 file03_AAAAC → file01 It solves the cycle renaming problem. If this approach is to be used care should be taken not to exceed any filename length limits during the rename, and also that the temporary names do not clash with any existing files. List of software This is a list of notable batch renaming programs in the form of a comparison table. See also Simultaneous editing Footnotes File managers Utility software types fr:Renommage en masse de fichiers ou dossiers informatiques