You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
1.6 KiB

# 文件重命名工具
2 years ago
![](screenshoot/img_3.png)
## 环境
- Clion 2022.1.2
- qt 5.14.2
## 功能
- 单个文件重命名
- 文件夹多个文件重命名
## 模式
### 替换模式
> 将文件名中的旧字符串替换为新字符串
旧字符串为空时,将文件名设置为新字符串
新字符串不能存在为:/\<>?*|
新字符串不能为空
### 时间戳模式
> 将文件名中的UTC时间戳替换为北京时间:年月日时分秒
旧文件名用“-”连接,为:前段名-UTC时间戳.后缀 格式
程序会将UTC时间戳替换为北京时间年月日时分秒格式
新名:前段名-北京时间.后缀
## 重复文件处理
当前文件夹有重复文件时,在新名后加“-旧名”字符串
2 years ago
## 使用
2 years ago
### windows
2 years ago
2 years ago
[windowsRelease-v1.0.2](https://github.com/tianzhendong/FileRename/releases/download/v1.0.2/FileRename.zip
)
[windowsRelease-v1.0.3](https://github.com/tianzhendong/FileRename/releases/download/v1.0.3/windowsRelease-v1.0.3.zip
2 years ago
)
2 years ago
### linux
修改CmakeLists.txt中的qt路径:
set(CMAKE_PREFIX_PATH "/home/tian/Qt5.12.9/5.12.9/gcc_64")
执行:
```bash
mkdir build
cd build
cmake ..
make
FileRename
```
### 替换模式
- 输入新旧字符串,选择替换模式,点击确认
- 选择文件或者文件夹
2 years ago
![](screenshoot/img_4.png)
### 时间戳模式
- 选择时间戳模式,点击确认
- 选择文件或者文件夹
2 years ago
![](screenshoot/img_5.png)
## 更改日志
### 20220620 v1.0.2
- [x] 新增打开文件目录功能(右下角listwidget支持)
- [x] 新增删除文件功能(右下角listwidget支持)
2 years ago
### 20220620 v1.0.3
- [x] 修改UI