This PowerShell script automates the process of batch renaming files in a specified directory. It's especially useful for organizing large sets of files with consistent naming conventions.
- Rename files based on a pattern or prefix
- Add timestamps or custom suffixes
- Supports filtering by file extension
- Logs renamed files for audit purposes
- Open PowerShell and navigate to the script directory.
- Run the script with parameters:
.\BatchRename.ps1 -Path "C:\MyFiles" -Prefix "Invoice_" -Extension ".pdf"