Giter VIP home page Giter VIP logo

renametool's Introduction

renameTool

文件批量重命名工具 V1.0.0

开发工具

python-3.11.0-amd64版本

原始需求

对一个目录下的所有指定后缀的文件进行重命名,命名规则是:当前文件夹名+"-"+0填充+序号+原后缀名

对于当前目录的多级目录也是同样操作 例1:C:\Users\User\Pictures\相册,这个目录下有两个文件

修改前 修改后
我自己.jpg 相册-0001.jpg
dog.jpg 相册-0002.jpg

支持指定的后缀文件批量重命名

支持修改序号填充的位数

构思

界面开发使用Tkinter模块(后续重构考虑用wxpython)

如何解决重命名时存在同名文件的问题?

此处是重命名两遍!暂不考虑效率问题。第一遍是给所有文件修改为不重名的随机名字,第二遍是正式命名

renametool's People

Contributors

yaoyao466 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.