Rename files in a folder

Example above shows renaming of four files in a folder after removing "myFolder " prefix in the file names.

Download Macro

Description

  • This macro renames files in a folder by replacing all the occurrences of user-defined oldString (e.g. "myFolder " in the example above) with the user-defined newString ("" in the example above).

  • Only files matching a user-defined pattern (regex) are renamed. Leave pattern = ".*" to consider all the files in the folder.

  • Before running the macro, open an image (any image!) from the folder. This is used by the macro to automatically read the folder path.