File Renamer Batch

批量文件重命名工具 — 用户教程Batch File Renamer — User Tutorial

Get it from Microsoft Store

🚀 快速入门Quick Start

如何使用 File Renamer Batch 批量重命名文件?
How to batch rename files with File Renamer Batch?
  1. 启动应用,点击「📁 导入文件」或直接拖拽文件到窗口Launch the app and click "📁 Import Files" or drag files into the window
  2. 在左侧规则面板配置规则(前缀/后缀/替换/正则等),右侧列表实时预览Configure rules in the left panel (prefix/suffix/replace/regex); the right list previews in real time
  3. 确认无冲突后,点击底部「▶ 执行重命名」Verify no conflicts, then click "▶ Execute Rename"
  4. 如需恢复,点击工具栏「↩ 撤销」一键还原所有原名To restore, click "↩ Undo" on the toolbar to revert all names
💡 所有规则同时生效,按固定顺序执行:删除(前缀/后缀/范围)→ 查找替换 → 清理(数字/字母/括号)→ 正则 → 大小写 → 添加(前缀/后缀)→ 序号 → 改后缀。All rules apply at once in a fixed order: remove (prefix/suffix/range) → find & replace → clean (digits/letters/brackets) → regex → case → add (prefix/suffix) → sequence → change extension.
⚙️

基础规则

Basic Rules

前缀、后缀、替换、序号、大小写

Prefix, suffix, replace, sequence, case

🧬

正则表达式

Regex

高级匹配替换,支持分组捕获

Advanced match & replace with group capture

👁

实时预览

Live Preview

输入即见效果,冲突即时标红

See results as you type; conflicts highlighted

一键撤销

One-click Undo

自动保存映射,随时恢复原名

Mapping auto-saved; restore anytime

💾

模板复用

Templates

保存常用规则组合,一键加载

Save rule sets and reload instantly

🌐

多语言

Multilingual

7 种界面语言,自动检测系统

7 UI languages, auto system detection

🎨 界面概览Interface Overview

截图Screenshot File Renamer Batch 主界面
  • 左侧规则面板Left Rules Panel配置改名规则,「普通」与「高级」两个标签页Configure rules; Basic and Advanced tabs
  • 右侧文件列表Right File List原文件名 → 新文件名预览,状态图标标识就绪/冲突/非法字符Original → new name preview; status icons show ready/conflict/invalid
  • 顶部工具栏Top Toolbar导入文件、导入文件夹、模板、保存、撤销、清空、搜索、设置、关于、在线教程Import files/folder, template, save, undo, clear, search, settings, about, online tutorial
  • 底部操作栏Bottom Bar执行重命名按钮 + 实时进度条Execute button + progress bar
Advertisement

01 如何批量修改文件扩展名?How to batch change the file extension?

方式一:使用「改后缀」输入框
Method 1: the "Extension" field
  1. 导入文件后,在「普通」标签页的「位置与格式」分组中找到「改后缀」输入框
  2. Import files, then find the "Extension" box in the "Position & Format" group on the Basic tab
  3. 输入新扩展名(可带点也可不带点,如 .pdfpdf;留空保持不变)
  4. Type the new extension with or without the dot, e.g. .pdf or pdf (leave empty to keep)
  5. 右侧列表实时预览,确认无误后执行重命名
  6. The list previews in real time; execute when it looks right
截图Screenshot 位置与格式分组:改后缀/删范围/序号/大小写
方式二:使用正则表达式
Method 2: with regex
匹配Match替换Replace效果Result
\.\w+$.pdfreadme.txt → readme.pdf
\.jpg$|\.jpeg$.pngphoto.jpg → photo.png
截图Screenshot 用正则批量修改扩展名

02 如何删除固定文字?How to delete fixed text?

方式一:使用「删前缀/删后缀」输入框
Method 1: the "Rem Prefix/Suffix" boxes

在「文本操作」分组中,「删前缀」输入框删除文件名开头的文字,「删后缀」输入框删除结尾的文字。规则作用于文件名主体(不含扩展名),不区分大小写。

In the "Text Operations" group, "Rem Prefix" strips text from the start of names and "Rem Suffix" strips it from the end. These rules apply to the name only (not the extension) and are case-insensitive.

方式二:使用正则删除任意位置的固定文字
Method 2: delete fixed text anywhere with regex
匹配Match替换Replace效果Result
-copy(留空)(empty)report-copy.pdf → report.pdf
_v\d+(留空)(empty)report_v3.pdf → report.pdf
\[.*?\](留空)(empty)[01]song.mp3 → song.mp3
💡 「替换」留空表示删除匹配到的内容。Leave "Replace" empty to delete the matched text.
✂️ 也可以使用「删范围」删除第 N 到第 M 位字符(从第 1 位起算);只填起始位置时删除到末尾。Or use the "Delete Range" rule to remove characters from position N to M (1-based); leave M empty to delete to the end.
截图Screenshot 用正则删除固定文字

03 如何添加前缀或后缀?How to add prefix or suffix?

如何给所有文件统一加文字?
How to add text to every file at once?
  1. 在「文本操作」分组的「前缀」输入框填写要加到开头的文字
  2. Type text into "Prefix" (Text Operations group) to prepend it
  3. 在「后缀」输入框填写要加到结尾(扩展名之前)的文字
  4. Type text into "Suffix" to append it before the extension
  5. 右侧列表实时预览新文件名
  6. Watch the live preview on the right
💡 前缀和后缀可同时使用,也可与序号等其它规则叠加。Prefix and suffix work together, and can be combined with other rules like sequence.
截图Screenshot 添加前缀和后缀后的预览

04 如何添加序号?How to add sequence numbers?

如何给文件批量编号?
How to number files in batch?
  1. 勾选「序号」(Sequence) 复选框启用
  2. Check the "Sequence" checkbox to enable it
  3. 「起始」(Start) 默认 1,「补零」(Padding) 默认 4 位(如 0001)
  4. "Start" defaults to 1 and "Padding" to 4 (e.g. 0001)
  5. 序号自动加在文件名末尾(扩展名之前),无需选择位置
  6. Numbers are appended at the end of the name (before the extension) — no position choice needed
💡 序号按列表当前顺序编号:第 1 行 = 起始值,第 2 行 = 起始值+1,依此类推。Files are numbered in list order: row 1 = start value, row 2 = start + 1, and so on.
截图Screenshot 添加序号后的预览
Advertisement

05 如何转换大小写?How to change letter case?

如何把文件名改成大写/小写/首字母大写?
How to make filenames upper, lower, or title case?
  1. 勾选「大小写」(Case) 复选框
  2. Check the "Case" checkbox
  3. 在下拉框选择转换方式:全大写、全小写或首字母大写
  4. Pick a mode from the dropdown: UPPERCASE, lowercase, or Title Case
💡 大小写规则只作用于文件名主体,不会改变扩展名。「首字母大写」会把每个单词的首字母转为大写、其余转为小写。The Case rule affects only the name, never the extension. "Title Case" capitalizes the first letter of each word and lowercases the rest.
截图Screenshot 大小写下拉选项

06 如何查找替换文本?How to find and replace text?

如何把文件名中的某段文字换成别的内容?
How to swap one piece of text for another in filenames?
  1. 在「文本操作」分组的「替换」行,第一个输入框输入要查找的文字
  2. In the "Replace" row of "Text Operations", type the text to find in the first box
  3. 在「→」后面的输入框输入替换内容(留空则删除)
  4. Type the replacement after the "→" (empty = delete)
  5. 所有匹配项会全部替换,列表实时预览
  6. Every match is replaced; the list previews live
💡 查找替换区分大小写,替换文件名中的所有匹配项,且只作用于文件名主体(不含扩展名)。Find & replace is case-sensitive, replaces every match, and applies to the name only (not the extension).

07 如何使用正则表达式?How to use regex?

正则表达式怎么用?
How do I use regex?

切换到「高级」标签页,在「正则与清理」分组中:在「正则」(Pattern) 框输入匹配模式,「替换」(Replace) 框输入替换文本(用 $1 $2 引用分组)。正则作用于完整文件名(含扩展名)

Switch to the Advanced tab; in the "Regex & Clean" group, enter a pattern in the "Pattern" box and replacement in the "Replace" box (use $1 $2 for groups). Regex works on the full filename including extension.

截图Screenshot 正则与清理分组的输入框
常用正则符
Common symbols
Symbol含义Meaning
.任意单个字符Any character
\d数字 0-9Digit 0-9
\w字母数字下划线Word char
+一次或多次One or more
*零次或多次Zero or more
^字符串开头Start of string
$字符串结尾End of string
|OR
( )分组,可用 $1 $2 引用Group, reference with $1 $2
\转义特殊字符Escape special chars
⚠️ . \ $ ^ ( ) [ ] { } + * ? | 都有特殊含义,匹配字面值需加 \ 转义。Escape . \ $ ^ ( ) [ ] { } + * ? | with \ to match literally.
分组重组示例
Reorder groups
匹配Match替换Replace效果Result
(.+)_v(\d+)$2_$1data_v3.csv → v3_data.csv
(\d{4})-(\d{2})-(\d{2})$1$2$32024-01-15_rpt → 20240115_rpt
(.+)_(\d+)$2_$1backup_2024.txt → 2024_backup.txt
截图Screenshot 分组重组示例
清理数字字母示例
Clean digits/letters
匹配Match替换Replace效果Result
\d+(留空)(empty)img_123_v4.png → img__v.png
[^a-zA-Z0-9_.](留空)(empty)file@#!.txt → file.txt
[\-_\s]+_my-photo file.jpg → my_photo_file.jpg
🖱 应用内所有示例行均可点击,点击自动填充到上方的「正则」和「替换」输入框。All example rows are clickable in the app; click to auto-fill the pattern and replacement fields above.
截图Screenshot 清理数字字母示例
截图Screenshot 高级标签页 - 正则示例

08 如何导入文件?How to import files?

如何添加文件到列表?
How to add files to the list?
  • 方式一:点击「📁 导入文件」,多选文件
  • Method 1: click "📁 Import Files" and multi-select files
  • 方式二:点击「📂 导入文件夹」,递归添加整个目录
  • Method 2: click "📂 Import Folder" to add a whole directory recursively
  • 方式三:直接拖拽文件/文件夹到窗口
  • Method 3: drag files/folders into the window
  • 每行左侧 🗑 按钮可单独移除文件
  • Use the 🗑 button on each row to remove files
截图Screenshot 导入文件 / 导入文件夹按钮 每行左侧的删除按钮
Advertisement

09 如何执行与撤销重命名?How to execute and undo a rename?

如何执行重命名?
How do I run the rename?
  1. 确认右侧列表状态均为「就绪」(无红/黄标记)
  2. Verify all rows show "Ready" (no red/yellow marks)
  3. 点击底部「▶ 执行重命名」按钮
  4. Click the "▶ Execute Rename" button
  5. 进度条显示执行进度,完成后弹出结果窗口(成功/失败统计)
  6. Progress bar shows progress; a result window appears when done
  7. 如需恢复,点击工具栏「↩ 撤销」一键还原
  8. Click "↩ Undo" to restore all names
🛡 只有状态为「就绪」的文件才会执行。目标文件已存在、源文件缺失、权限不足或被占用等失败项会在结果窗口中列出原因;改名映射自动保存,可随时一键撤销。Only files with "Ready" status are renamed. Failures (target already exists, source missing, permission denied, file locked) are listed with reasons in the result window; mappings are auto-saved so you can undo anytime.
截图Screenshot 工具栏撤销按钮

10 如何保存和加载模板?How to save and load templates?

如何保存和加载模板?
How do I save and load templates?
  1. 配置好一组常用规则
  2. Configure a set of frequently used rules
  3. 点击工具栏「💾 保存」,在文件夹对话框中选择保存位置(默认模板目录,直接确认即可),自动生成「模板_日期时间.json」文件
  4. Click "💾 Save", pick a folder in the dialog (the default template folder works as-is), and a "模板_日期时间.json" file is created automatically
  5. 下次点击「📋 模板」,在文件对话框中选择 .json 模板,规则自动载入并预览
  6. Next time click "📋 Template", pick a .json template in the file dialog, and the rules are applied and previewed
💡 适合重复性任务,如「统一加前缀+改后缀.pdf」这种组合。Ideal for repetitive tasks like "add prefix + change to .pdf".

11 如何切换主题和语言?How to switch theme and language?

如何切换主题和语言?
How do I switch theme and language?
  1. 点击工具栏 ⚙️ 打开设置
  2. Click the ⚙️ toolbar button
  3. 「外观」区切换浅色/深色主题
  4. Toggle light/dark in "Appearance"
  5. 「语言」下拉框选择 7 种语言之一
  6. Pick one of 7 languages
  7. 首次启动自动检测系统语言
  8. System language auto-detected on first launch
截图Screenshot 设置窗口:主题与语言

💡 使用技巧Tips

  • 点击示例自动填充——正则示例行可点击,快速应用常用模式
  • Click examples to auto-fill — click regex examples to apply patterns instantly
  • 搜索筛选——工具栏搜索框输入关键词实时筛选文件
  • Search filter — type in the toolbar search box to filter files
  • 手动编辑——双击「新文件名」列可直接修改单个文件
  • Manual edit — double-click the New Name column to edit individual files
  • 模板优先——重复性任务先存模板,节省时间
  • Use templates — save templates for repetitive tasks

常见问题FAQ

文件列表出现红/黄标记怎么办?
What if files show red/yellow marks?

红色 = 重名冲突,黄色 = 非法字符。调整规则消除后即可执行。

Red = conflict, Yellow = invalid chars. Adjust rules to resolve.

重命名后能恢复吗?
Can renames be undone?

可以。点击「↩ 撤销」一键恢复全部原名,映射自动保存。

Yes. Click "↩ Undo" to restore all names; mappings are auto-saved.

支持哪些文件类型?
What file types are supported?

所有类型,包括无后缀文件。

All types, including files without extensions.

数据安全吗?
Is data secure?

纯本地运行,无网络请求,无数据库,文件不会离开设备。

Fully offline, no network requests, no database. Files never leave your device.