How to remove prefixes of multiple files at once EASILY in Windows?

Поділитися
Вставка
  • Опубліковано 22 гру 2022
  • 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_", "") }

КОМЕНТАРІ • 73

  • @773group
    @773group 9 місяців тому +1

    I love how you started the video, Because I struggles for 3 hours before I fond your video! Thank you for the help !!!!!!!

  • @squiggles3966
    @squiggles3966 6 місяців тому +21

    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_", "") }"

  • @jedison2441
    @jedison2441 10 місяців тому +1

    This is always great information, your two hours save me a lot of time.
    🙏Thankyou

  • @klmoravec
    @klmoravec 5 місяців тому +1

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

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

    This was big help. Thank you!

  • @akshayjamadar4913
    @akshayjamadar4913 5 місяців тому +7

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

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

    Very useful powershell command ! Thanks !

  • @sudhanshusharma5742
    @sudhanshusharma5742 Рік тому +1

    It was very helpful Thank you !😊

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

    thank you!! This was really helpful!!

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

    Thank you very much. This was very helpful.

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

    Very useful, thank you!

  • @PrimeCode7
    @PrimeCode7 2 місяці тому +2

    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 😊

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

    You’re awesome 🎉 thank you so much!

  • @ognjenjokic2104
    @ognjenjokic2104 6 місяців тому +1

    Thank you very much!

  • @Leequidude
    @Leequidude 9 днів тому

    Thank you!

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

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

  • @lucasgaitan_
    @lucasgaitan_ 15 днів тому

    Thank you! Greats fom Brasil!

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

    Thanks , Its Working

  • @Cvekabird
    @Cvekabird Рік тому +3

    thanks so much

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

    Life saver.

  • @makeyourmusichappen
    @makeyourmusichappen 7 місяців тому +1

    THANK YOU

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

    Thank you very much for sharing your knowledge.

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

    Thanks!

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

    Thank you.

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

    itss work thanks

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

    thank you

  • @prathammishrah
    @prathammishrah 4 місяці тому +2

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

  • @okidk-vl4xq
    @okidk-vl4xq 10 місяців тому

    thanks

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

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

  • @priyanshitripathi1845
    @priyanshitripathi1845 3 місяці тому +2

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

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

    god bless u

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

    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?

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

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

  • @arthur_n
    @arthur_n 5 місяців тому +2

    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?

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

      The code is in the description. Code used: get-childitem *.png | foreach { rename-item $_ $_.Name.Replace("Flag_of_", "") }
      I have never tried renaming files inside subfolders.

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

      up

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

      ​@@thescalehub well that wasnt helpful

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

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

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

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

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

    Working on windows 11?

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

    How to delete from index x to y in pdf

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

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

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

    how about .mkv files or it has [ ] in the word that u will remove?

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

    did not work for me

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

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

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

    chicken 65 pakoda road side recepie sollunga annan

  • @lopserdff
    @lopserdff 19 днів тому

    i just want to remove the numbers on my files

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

    Not working

  • @YogeshKumar-wp9zp
    @YogeshKumar-wp9zp 11 місяців тому

    For music files?..

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

    Please provide the full command

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

      It's also in the description of the video: get-childitem *.png | foreach { rename-item $_ $_.Name.Replace("Flag_of_", "") }

  • @abdulsalam-ch2us
    @abdulsalam-ch2us Рік тому

    HELLO MAAM IT IS SHOWING ERROR

  • @LegacyLegends-yt
    @LegacyLegends-yt 8 місяців тому +1

    didnt work

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

    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

  • @buster5661
    @buster5661 23 дні тому

    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 8 днів тому

      same

    • @buster5661
      @buster5661 8 днів тому

      @@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