https://github.com/langningchen/multirename
Rename multiple files on Windows with a pattern.
https://github.com/langningchen/multirename
collaborate rename-files windows
Last synced: 8 months ago
JSON representation
Rename multiple files on Windows with a pattern.
- Host: GitHub
- URL: https://github.com/langningchen/multirename
- Owner: langningchen
- License: gpl-3.0
- Archived: true
- Created: 2023-12-22T12:04:56.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-17T13:18:13.000Z (over 1 year ago)
- Last Synced: 2025-02-11T13:54:49.438Z (8 months ago)
- Topics: collaborate, rename-files, windows
- Language: C++
- Homepage:
- Size: 31.3 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://wakatime.com/badge/github/langningchen/MultiRename.git)
# MultiRename
## Introduction
Rename multiple files on Windows with a pattern.
## Usage
1. Clone this repository
2. Make sure you have `gcc` and `cmake` installed.
3. Run `cmake -B build` and `cmake --build build` to build the project.
4. Run `build\MultiRename.exe` to rename files.## Notes
Rename rules:
- `[F]`: Full file name (e.g. "file.txt")
- `[.]`: File extension dot (if file has extension, then "."; otherwise, "")
- `[E]`: File extension (e.g. "txt")
- `[N]`: File name, same as "[F][.][E]" (e.g. "file")
- `[D]`: File directory (e.g. "Folder")
- `[N:a~b]` `[F:a~b]` `[E:a~b]` `[D:a~b]` `[P:a~b]`: File name from a to b, if a or b is less than 0, then count from the end of the string (e.g. `[N1~3]`="fil" `[N1~-2]`="fi" `[N-3~-1]`="ile")
- `[S]`: File size in bytes (e.g. "1024")
- `[T]` `[C]` `[W]` `[A]`: Current time or file last create/write/access time (e.g. "2019-01-01 00:00:00")
- `[T]` `[C:format]` `[W:format]` `[A:format]`: Current time or file last create/write/access time with format, format is the same as strftime (e.g. "2019-01-01 00:00:00")
- `[[]`: Character '['
- `[]]`: Character ']'
- `[U]`: Random UUID (e.g. "123e4567-e89b-12d3-a456-426655440000")
- `[I]`: File index
- `[I:Start,Step,Digits]`: File index with start, step and digits## License
This project is licensed under the terms of the GNU General Public License v3.0.