Skip to content

svermaji/ChangeFileNames

Repository files navigation

ChangeFileNames

Utility in Java to change file names in folder/child-folders in different ways.

Recent Changes

On 02-Aug-2020

Now instead of changing your filenames upfront you can check using "Preview" action that what would be actual changes.

Remember that some changes of file names may throw runtime exception, if some operation leads to change in file name that already exists.

Recent Changes

On 03-Jul-2020

Changes made to option/location/params will be auto-saved as preferences.

Usage

javac ChangeFileNames <srcDir> <include-sub-folders> <file-filter-extension> <option> [<extra-param>]
where

  • <srcDir> - source directory whose filenames are to be processed.
  • <include-sub-folders> - TRUE to include and FALSE to exclude.
  • <file-filter-extension> - the specific files (like .html or .class etc) to be processed. "ALL" for all files.
  • <option> - the operation to be performed on files, also is optional and required by some of the operations of . The valid options are:
    1. REMOVE_NUMBERS_FROM_FILE_NAMES
    2. REMOVE_NUMBERS_FROM_START
    3. REMOVE_NUMBERS_FROM_END
    4. APPEND_STRING_IN_START
    5. APPEND_STRING_IN_END
    6. REMOVE_CHARS_FROM_START
    7. REMOVE_CHARS_FROM_END
    8. REMOVE_SPACES_FROM_START
    9. REMOVE_SPACES_FROM_END
    10. REMOVE_SPACES_FROM_BOTH_SIDES
    11. REMOVE_MATCH_FROM_START
    12. REMOVE_MATCH_FROM_END
    13. REMOVE_MATCH
    14. REPLACE_MATCH_FROM_START
    15. REPLACE_MATCH_FROM_END
    16. REPLACE_MATCH
    17. CONVERT_TO_TITLE_CASE
    18. UPDATE_MP3_TAGS (obsolete)

Examples

  1. javac ChangeFileNames c:/test FALSE mp3 REMOVE_NUMBERS_FROM_START
  2. javac ChangeFileNames c:/test FALSE ALL REMOVE_NUMBERS_FROM_FILE_NAMES
  3. javac ChangeFileNames c:/test FALSE java APPEND_STRING_IN_START prefix
  4. javac ChangeFileNames c:/test FALSE class REMOVE_CHARS_FROM_END 4
  5. javac ChangeFileNames c:/test FALSE class REMOVE_SPACES_FROM_END
  6. javac ChangeFileNames c:/test FALSE class REPLACE_MATCH abc xyz

Images

Welcome screen that stores all your values from last run
Image of Yaktocat

Welcome screen that stores all your values from last run
Image of Yaktocat

About

Java utilities to change or rename file names, remove spaces etc

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published