Skip to content

ThomasQTruong/extfix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extfix

Mass rename file extensions in a specified folder to a different extension.

  • i.e. file.png -> file.jpg

Requirements

  • Python >= 3.9
    • Only needed for CLI / development.
  •    pip install -r requirements.txt
    • Only needed for development.
    • Not needed for extfix_cli version.

How To use (GUI - extfix.py)

  1. Download from the releases.
  2. Open the program.
  3. Select the Target Directory (the directory with all the files to fix).
  4. Input the Target Extension and New Extension values.
    • i.e. .jpg, .png, or something else!
  5. Click start and the file extensions will be fixed!

How To Use (Command Line - extfix_cli)

  1. Download extfix_cli.
  2. Edit extfix_cli with a text editor.
  • DIRECTORY_NAME = The directory path with all the files to be fixed.
    • If you do not know what you are doing, just create a folder in the same directory as extfix_cli (but don't put extfix_cli in the created folder).
      • Either name the folder Test or whatever you set the DIRECTORY_NAME to.
  • TARGET_EXT = the extension you want to be replaced.
    • i.e. file.png -> file.jpg then you would put .png.
  • NEW_EXT = the new extension to replace with.
    • i.e. file.png -> file.jpg then you would put .jpg.
  1. Run extfix_cli and it should work!

Generate Windows .EXE

  •   pyinstaller --noconfirm --onefile --windowed `
      --icon=".assets/app/icon.ico" `
      --add-data ".assets/app/icon.png;." `
      --add-data ".assets/app/icon.ico;." `
      --name "extfix" `
      extfix.py

About

Mass rename file extensions in a specified folder to a different extension.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages