Giter VIP home page Giter VIP logo

file-renamer's Introduction

File Renamer

Overview

This script is designed to rename all files within a specified folder. It's a simple Python script that allows batch renaming of files.

Usage

To use this script, follow these steps:

  1. Clone Repository: Clone this repository to your local machine.

  2. Navigate to Directory: Open a terminal or command prompt and navigate to the directory where the script is located.

  3. Run Script: Execute the script by providing the folder path as a command-line argument. For example:

    python script_name.py <folder_path>
    

    Replace <folder_path> with the path to the folder containing the files you want to rename.

  4. Confirmation: The script will prompt you to confirm the renaming operation. Type 'y' to proceed or 'n' to cancel.

  5. Renaming Process: If confirmed, the script will iterate through each file in the specified folder, renaming them according to the specified pattern.

  6. Completion: Once the renaming process is complete, the script will display a message indicating that all files have been successfully renamed.

Notes

  • Error Handling: The script includes basic error handling to handle cases where the specified folder does not exist or if any other errors occur during the renaming process.

  • Caution: Ensure that you have a backup of your files before running the script, especially if renaming large numbers of files, to prevent accidental data loss.

file-renamer's People

Contributors

shivgungaming avatar

Stargazers

 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.