Coder Social home page Coder Social logo

daniel-mccarthy / partial-file-renamer Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 333 KB

A C# Utility made to batch rename selections of file names and strings inside the file.

License: MIT License

C# 100.00%
csharp rename-files search-file filter-files

partial-file-renamer's Introduction

Partial-File-Renamer

A C# Utility made to batch rename selections of file names and search for files containing specific strings.



The current build does not support the ability to replace strings inside the file yet because of the potential destructive nature of editing files of unknown format and encoding. While this functionality is being worked on for future releases, the builds available currently are intended for renaming only.


So what does the program do?

Partial-File-Renamer allows you to select a folder and batch rename files with common strings. This means that you can rename all of them at once by taking out that string and inserting a new one of the user's selection.

For example, with these files:

Vacation-Photo-Greece01.png
Vacation-Photo-Greece02.png
Vacation-Photo-Greece03.png
Vacation-Photo-Italy01.png
Vacation-Photo-Germany01.png

We can select a common string and either replace or remove it.

rename "C:\Users\Name\Pictures\Vacation" "Vacation-Photo" "Vacation-"

We can have all of the files automatically renamed to:

Vacation-Greece01.png
Vacation-Greece02.png
Vacation-Greece03.png
Vacation-Italy01.png
Vacation-Germany01.png

Alternatively, we could do:

rename "C:\Users\Name\Pictures\Vacation" "Vacation-Photo-" ""

And get: Greece01.png
Greece02.png
Greece03.png
Italy01.png
Germany01.png


The Console version also supports the ability to overwrite any files detected to have the name our files are renamed to. It can also filter out file extensions, or filter in file extensions, so that we can select which types of files are edited. The user may also select whether the program effects all subdirectories or only the top-most folder. All of these can be selected via their own commands.

Additionally the user may search the contents of files for a string. This can be done with the additional abilities to select whether or not the search is case sensitive, and whether the search includes files in subdirectories.


partial-file-renamer's People

Contributors

daniel-mccarthy avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.