Skip to content

正则表达式批量重命名文件,或用数字递增命名。Python script, regex batch rename files, or name with increasing numbers

License

Notifications You must be signed in to change notification settings

Charles94jp/FileRenameScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

简介

脚本最好使用python 3来运行

批量重命名文件,有两种用法:

  1. 根据正则匹配位置,替换为同一字符串

    python file_rename.py -r D:\test \.jfif .jpg 将.jfif后缀替换为.jpg

  2. 根据创建(最后修改)时间递增命名

      这适用于批量图片处理场景,有些软件批量导入图片是根据文件名排序的,我们想导入后根据拍摄时间排序。两者不符时,可以使用此脚本。

    python file_rename.py D:\test --auto

使用方法

About

正则表达式批量重命名文件,或用数字递增命名。Python script, regex batch rename files, or name with increasing numbers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages