Zainab Bajaj
Zainab Bajaj
  • 2
  • 26 959
How to remove prefixes of multiple files at once EASILY in Windows?
The video illustrates how to rename or remove prefixes or suffixes of multiple files at once using Windows Powershell.
Code used: get-childitem *.png | foreach { rename-item $_ $_.Name.Replace("Flag_of_", "") }
Переглядів: 26 798

Відео

КОМЕНТАРІ

  • @rockgrit
    @rockgrit 3 дні тому

    The video was of great help.

  • @Impukes
    @Impukes 18 днів тому

    Thanks!

  • @mugiraharjo6270
    @mugiraharjo6270 28 днів тому

    How to rename non ascii character, like chinese font

  • @mugiraharjo6270
    @mugiraharjo6270 28 днів тому

    how about replace suffixes ? at end of file name or folder name

  • @vinaymehtaphotography
    @vinaymehtaphotography Місяць тому

    video is very helpful for me thanx

  • @hamitcankibar2404
    @hamitcankibar2404 Місяць тому

    That was awesome information, thank you. What if the names i want to change are like "DSC04567 - ABC997865" and i want to remove everything before the "ABC997865". does anyone can come up with an idea how should i write the code?

  • @Leequidude
    @Leequidude Місяць тому

    Thank you!

  • @lucasgaitan_
    @lucasgaitan_ Місяць тому

    Thank you! Greats fom Brasil!

  • @lopserdff
    @lopserdff Місяць тому

    i just want to remove the numbers on my files

  • @buster5661
    @buster5661 2 місяці тому

    it doesnt work for me. I am trying to replace the prefix for files with [AVI] rename-item : Cannot rename because item at 'F:\Videos\xyz-1080p\Output\[AWI] xyz - S02E17 [1080p] [Multi-Audio] [06130AE3].mkv' does not exist. At line:1 char:33 + ... childitem *.mkv | foreach { rename-item $_ $_.Name.Replace("[", "") } + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Rename-Item], PSInvalidOperationException + FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.RenameItemCommand

    • @sakori12
      @sakori12 Місяць тому

      same

    • @buster5661
      @buster5661 Місяць тому

      @@sakori12 I got it to work, it requires you to put quotations "file" on each file. But whenever i did this, sometimes i got weird symbols. try it and maybe it will work for you

  • @shortsworld4626
    @shortsworld4626 2 місяці тому

    How to delete from index x to y in pdf

  • @GhazalehGha
    @GhazalehGha 2 місяці тому

    did not work for me

  • @szkokee
    @szkokee 2 місяці тому

    Very useful, thank you!

  • @RaNa-ft7uf
    @RaNa-ft7uf 2 місяці тому

    Not working

  • @KaptanSinghkp
    @KaptanSinghkp 2 місяці тому

    itss work thanks

  • @c.r2135
    @c.r2135 3 місяці тому

    god bless u

  • @zeeshan-abidmeghani7853
    @zeeshan-abidmeghani7853 3 місяці тому

    Wow! What a great help you've given. I would like to add something though. We don't exactly need **.png thing. A simple *.** can work. If a folder has multiple types of files, this change in code can rename all the files. So this code will be lot more useful: get-childitem **.** | foreach { rename-item $_ $_.Name.Replace("Flag_of_", "") } I think you should pin this. As lots of people who will say it's not working would not grasp the thing that your original code only works for png extension.

  • @TheFaseehun
    @TheFaseehun 3 місяці тому

    Thank you.

  • @mapex311
    @mapex311 3 місяці тому

    thanks! absolutely ridic msoft does not have a native find and replace feature in win explorer.

  • @koalabear6576
    @koalabear6576 3 місяці тому

    Very useful powershell command ! Thanks !

  • @Naffez
    @Naffez 3 місяці тому

    Working on windows 11?

  • @chaitraligandhi1688
    @chaitraligandhi1688 3 місяці тому

    Thank you very much. This was very helpful.

  • @bradlewis273
    @bradlewis273 4 місяці тому

    Fantastic tutorial, Absolute genius! Just what I needed to to remove track numbers from all my music files, which was put there by iTunes a long long time ago to my entire music collection. So glad I found this fix to use, it's making things allot more easier... Thank you so much The Scalehub for putting this up online to help, God Bless you ! 😄🙏❤

    • @IronbugVR
      @IronbugVR 3 місяці тому

      how did you type in the file number part? I am trying to do the same thing.

  • @PrimeCode7
    @PrimeCode7 4 місяці тому

    Thank you very much I also struggled 1 hr for this very helpful Just a correction after selecting file and pressing shift you have to press right click not left. Thanks 😊

  • @TKUltra971
    @TKUltra971 4 місяці тому

    Thank you very much! You are the best, god bless.

  • @priyanshitripathi1845
    @priyanshitripathi1845 4 місяці тому

    What if the prefix are different for all but no. Of letters is same

  • @truerequiem
    @truerequiem 4 місяці тому

    What if they are numbers though and the files all have a different number?

  • @Goefrei0516
    @Goefrei0516 4 місяці тому

    Didn't seem to do anything on mine, the command runs but doesn't rename shit

  • @Q8husky
    @Q8husky 5 місяців тому

    Thank you very much for this explanation. I have searched a lot for this method, and today you explain the topic simply and in one minute. This thing really deserves praise and thanks, but I have an important question!! How can I change the names of files from the outside and not their content from the inside?? Example I have pictures of my travels and file titles 12-3-2020 - Japan 3-5-2016 - Thailand How can I delete the history so that I want the file to be only in the name of Japan and Thailand without the year?

  • @pankajmehtapawan1009
    @pankajmehtapawan1009 5 місяців тому

    using Powerrename from PowerToys is a lot easier method; just a heads up!

  • @Amanjojo-yo
    @Amanjojo-yo 5 місяців тому

    B r i t i s h L i t e r a t u r e P y q s a n a l y s i s my file names are like this how to fix it

  • @prathammishrah
    @prathammishrah 5 місяців тому

    didn't work for my mp3s. i'd recommend pinning the comment down there that gives the info for it. good video tho, thanks.

  • @Vurt72
    @Vurt72 6 місяців тому

    it kind of works, but it inserts a space which makes it completely unusable for me.

  • @gabrieldelatortilla1
    @gabrieldelatortilla1 6 місяців тому

    what if its a folder???? 😭😭😭😭

  • @uthayakumar5782
    @uthayakumar5782 6 місяців тому

    chicken 65 pakoda road side recepie sollunga annan

  • @arthur_n
    @arthur_n 6 місяців тому

    Thank you very much, this is very helpful! Would you be able to share the code for renaming multiple folder? And is there a way to also change the file names of files that are inside subfolders?

  • @meinAkshayhoon
    @meinAkshayhoon 6 місяців тому

    i tried to use this code but got an error when i searched , it was because of special characters like "[ ]" can you please help

  • @klmoravec
    @klmoravec 6 місяців тому

    THANK YOU madam! 🙏Crystal clear video and straight to the point. <3

  • @squiggles3966
    @squiggles3966 7 місяців тому

    Thank you VERY much, just a tip for other users, if you need to rename files that ARENT .png, for example i was doing .mp3 replace that in the code " get-childitem *[INSERT FILE TYPE HERE] | foreach { rename-item $_ $_.Name.Replace("Flag_of_", "") }"

  • @bigben20
    @bigben20 7 місяців тому

    thank you

  • @ognjenjokic2104
    @ognjenjokic2104 7 місяців тому

    Thank you very much!

  • @makeyourmusichappen
    @makeyourmusichappen 8 місяців тому

    THANK YOU

  • @sapros3806
    @sapros3806 8 місяців тому

    It helped me rename the files in my music folder, thanks! Here is the same code, but for a simple audio file: get-childitem *.mp3| foreach { rename-item $_ $_.Name.Replace("PUT YOUR THING HERE", "") }

  • @farhantanveer5733
    @farhantanveer5733 8 місяців тому

    Please provide the full command

  • @rafaelainediy3767
    @rafaelainediy3767 9 місяців тому

    thank you!! This was really helpful!!

  • @LegacyLegends-yt
    @LegacyLegends-yt 9 місяців тому

    didnt work

    • @zainabbajaj
      @zainabbajaj 9 місяців тому

      Which part didn't work?

  • @monotoshnaskar5368
    @monotoshnaskar5368 9 місяців тому

    thanks a lot....... aabhi chutki bajate hi all done :)

  • @noelsucgang
    @noelsucgang 9 місяців тому

    Thank you very much for sharing your knowledge.

  • @mipe7755
    @mipe7755 9 місяців тому

    Thanks!