Giter Site home page Giter Site logo

sorzkode / renamer.ps1 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 66 KB

Generic PowerShell script to bulk rename files based on user input.

Home Page: https://github.com/sorzkode/renamer.ps1

License: MIT License

PowerShell 100.00%
bulk-rename-files filename powershell rename renamer sorzkode

renamer.ps1's Introduction

renamer.ps1

PowerShell script to bulk rename files based on user input.

alt text

Instructions

    1. Place the `renamer.ps1` script in the folder where the files are located that you want to rename.

    2. Open PowerShell and change directories to where the folder is located (e.g., `cd "C:\users\user\New folder"`).

    3. Run the script by typing `./renamer.ps1` in the PowerShell prompt.

    - **Please note:** You may need to change your execution policy to "Unrestricted" in order to run scripts. By default, the execution policy is disabled for security purposes. To change the execution policy, use the command `Set-ExecutionPolicy Unrestricted` and follow the prompts.

    4. When prompted by the script, enter the text you want to replace.

    5. When prompted by the script, enter the new text you want to add to the files.

If you are uncomfortable running a script or prefer to do it manually, you can open PowerShell and use the following command:

> ls | Rename-Item -NewName {$_.name -replace "curent text to be replaced","new text"}

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.