Windows : how to rename or remove specific characters on multiple files

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ส.ค. 2024

ความคิดเห็น • 225

  • @GMMReviews
    @GMMReviews 3 ปีที่แล้ว +12

    Wow, this is the most simple coding tutorial I have ever found. It worked first time, that never happens for me! I have dyslexia, and I always struggle to type everything correctly, but you really took the time go through each character, and what it does, which I've never seen in a coding tutorial. Usually people just breeze past, and I'm left lost and confused. Thank for very much, saved my ass having to rename 100+ files :)

    • @xhinmaranan212
      @xhinmaranan212 10 หลายเดือนก่อน

      same because of THE ONE PIECE IS REAL

  • @MeetMalli
    @MeetMalli 4 ปีที่แล้ว +35

    Thanks for the script :)
    This one also works well " Dir | Rename-Item -NewName {$_.name -replace "OLD-FILE-NAME-PART",""}
    This is for lazy fellows = Modify as per your requirements
    get-childitem *.mp3 | foreach { rename-item $_ $_.Name.Replace("Radiohead -", "") }
    Update - if you are using windows then try ant Renamer it's way batter then script, I am using it since last few weeks. It will amazed you for sure.

    • @trgovinadotnet
      @trgovinadotnet 4 ปีที่แล้ว +2

      Meet, code from video didn't work for me, yours did! Thank you, but also thank to video author.

    • @MeetMalli
      @MeetMalli 4 ปีที่แล้ว +3

      @@trgovinadotnet you are most welcome...
      Actually while i was watching this i search for other and found alternate solution.. So i pasted here so others can use it.

    • @lancehightower4971
      @lancehightower4971 4 ปีที่แล้ว

      I'm just trying to remove a ,v from the end of a bunch of files, how would I do that

    • @MeetMalli
      @MeetMalli 4 ปีที่แล้ว +1

      @@lancehightower4971 Dir | Rename-Item -NewName {$_.name -replace "v",""}

    • @leugimzeuqirne8238
      @leugimzeuqirne8238 3 ปีที่แล้ว +1

      @@MeetMalli thank you, you saved me lot lots of time.

  • @sockie4be
    @sockie4be 4 ปีที่แล้ว +8

    Thank you so much for sharing this useful tip. It works like a charm. In windows 10, I had to press Ctrl+shift and right-click to choose "Open Powershell Window here".

  • @stephencooper8710
    @stephencooper8710 4 ปีที่แล้ว +3

    Very good video if anyone has trouble with the bar or pipe character after declaring the file extension then on windows press "shift + |" (| = the button left of the z key).

    • @crazygeorgelincoln
      @crazygeorgelincoln ปีที่แล้ว

      THANK YOU |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

  • @ArtDecoArtNouveau
    @ArtDecoArtNouveau 4 ปีที่แล้ว +6

    Fantastic! Thank you so much for this very clear and easy way to alter multiple files...I had managed to alter (mess up!) ALL my website pages when updating it and uploaded them without noticing. To correct my mess I was resigned to the fact that I would have to manually rename (by removing .bak) all of the backup files to be able to use them and make the site work correctly again...you have saved me hours!

  • @ellipseguidegrl
    @ellipseguidegrl 4 ปีที่แล้ว +8

    This was exactly what I needed! It beats having to rename 971 jpgs :) Such a time-saver! Thank you!

  • @piuditto
    @piuditto 3 ปีที่แล้ว +2

    You just saved me from manually changing file names of 7500 images. Thank you so much!!!

  • @StarPrater
    @StarPrater 5 ปีที่แล้ว +1

    I used this technique to find all those copied files (1) (2) I changed the open parentheses to zzz then I could easily search for zzz and delete.... I've just checked a folder of 12 thousand files in about 4 minutes! Thank you so much!

  • @bradlewis273
    @bradlewis273 3 หลายเดือนก่อน

    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 delanationHelp for putting this up online to help,
    God Bless you brother !
    🙂🙏❤

  • @vidrax3481
    @vidrax3481 5 ปีที่แล้ว +1

    Good Night. Excelent, dont listen to any complains, your explanation where near perfection, worked here instantaneous 400+ arch, Only a tip for users: Google the "powershell bar symbol" copy and paste there, absent from new Keyboars or verywell hidden. Thanks MRs Frenchman

  • @APLaurenson
    @APLaurenson 3 ปีที่แล้ว +1

    Excellent helpful video. I was able to rid my file names of unreadable characters by copying the unrecognized character between the quotes. You gave a very clear explanation, thank you.

  • @totalnewbie8619
    @totalnewbie8619 4 ปีที่แล้ว +1

    Thank you for saving me the time to do it manually. I had several folders with multiple files that needed to be renamed. You are a life saver!

  • @GinoZump
    @GinoZump 4 ปีที่แล้ว +15

    I was getting so frustrated cause in here the symbol in the middle looks like a colon ":" but it's actually the line "|"

    • @saadspawn
      @saadspawn 5 หลายเดือนก่อน

      Exactly, I was trying the same. Found on the internet the sign ¦ which comes when you hold ALT and type 0166 but this didnt work. You just need to press Shift + \ which will give you |.

  • @FTWQ
    @FTWQ 5 ปีที่แล้ว +6

    This worked flawlessly! Save me so much time!!!

  • @unrealdevop
    @unrealdevop ปีที่แล้ว

    Bro, this was a life saver...I had nearly 1000 images I needed to rename, and this saved me from downloading some malware infested software.

  • @TheStevenWhiting
    @TheStevenWhiting 2 ปีที่แล้ว

    Before the last } you can put -whatif which will show you WHAT would happen IF you ran the command. It won't change anything. This is useful & I've used many a time and noticed a mistake which would of been a headache to fix. At least with -whatif you can get s preview of what would happen.

  • @johnmarcou973
    @johnmarcou973 5 ปีที่แล้ว

    Thanks a lot. Worked perfectly. The only hang up for me, and it was a small one, was my keyboard has a single vertical line for a "pipe" character, not a dashed vertical line, which is actually what I am used to from days gone by. That, combined with a worn out key that I couldn't read where I expected the pipe character, had me running in circles for a while. I was stuck in DOS but now see I need to explore Powershell. Cheers, John

  • @digimaze
    @digimaze 4 ปีที่แล้ว +11

    Thank you so much, saved me so much time even in these days of COVID-19 Lockdown....lol Brilliantly explained and videoed :)

  • @sirojajam55
    @sirojajam55 4 ปีที่แล้ว

    Sir, you are literally best at this explanation. Thank you million times and more!

  • @stevensilcock
    @stevensilcock 6 ปีที่แล้ว

    Thanks mate. Works like a treat. Had heaps of files names with date time stamp from file history recovery which I was getting sick of looking at and so many it would've taken ages individually. Not any more! Thanks for sharing.

  • @SJQuirke
    @SJQuirke 5 ปีที่แล้ว +2

    ha haaahh - yee hah - it worked - I had the same problem with brackets - but how can I remove the spaces? - OK I just used " " instead of ")" - and that worked too - you are a scholar and a gentleman - in that order - thanks so much for posting this

  • @pringle-man
    @pringle-man 4 ปีที่แล้ว

    The only issue I had with this video is you kept referring to parentheses as brackets, but once I figured that out it worked perfectly!

  • @chintalthacker448
    @chintalthacker448 9 หลายเดือนก่อน

    Very helpful to complete tedious work in just one command👻

  • @r.jimlad4826
    @r.jimlad4826 4 ปีที่แล้ว +1

    Absolutely superb! Thank you for an EXTREMELY useful tip. TOP MARKS!!

  • @TheGalagaKing
    @TheGalagaKing ปีที่แล้ว +2

    Great tutorial. However, it work for what I want to do with batch renaming. I have a lot of numbered FOLDERS, not files, that I want to have the numbers removed and haven't figured out how to do it as a batch. For example, I have hundreds of folders that are named for example:
    0001 - Tree
    0002 - Car
    0003 - House
    0004 - Animals
    I want to remove all the "sequential numbering in each of the folder names. NOT the files within each of the folders. This is what I want to accomplish:
    Tree
    Car
    House
    Animals
    If you have any suggestions, I'm all ears. Perhaps a few lines of code in a cmd window. That would be great. Thanks!

  • @realcharlebois8481
    @realcharlebois8481 6 ปีที่แล้ว

    Fantastic!!! This saved me hours and hours of work. It works perfectly as described.

  • @ramakanth3394
    @ramakanth3394 4 ปีที่แล้ว

    you just saved me days of work (headache work of 1500 jpg files)...... thank you sooooooooooooooooooooo much for this tutorial.

  • @Don8Maverick
    @Don8Maverick 4 ปีที่แล้ว

    Thank you very much ! this helped me a LOT, hope you'll have a wonderful life

  • @mrau92me
    @mrau92me 4 ปีที่แล้ว +1

    thanks so much! This kept me from having to paste the same thing into 3400 file names.

  • @neonsolace2748
    @neonsolace2748 4 ปีที่แล้ว +3

    a great way to fix ransomware

  • @rizamuradli4206
    @rizamuradli4206 3 ปีที่แล้ว

    This is the only method worked for me
    Thank you so much

  • @TachiKuma
    @TachiKuma 6 ปีที่แล้ว +3

    This made my day! Thank you!!

  • @machiii-
    @machiii- 8 หลายเดือนก่อน

    Very clear and easy to understand. Thank you so much^^! I've succeeded in doing it!

  • @petercairns2343
    @petercairns2343 4 ปีที่แล้ว

    I have a Panasonic Lumix camera & all the file names are prefixed with "P".
    I followed the steps outlined. The process worked. However, it also renamed the file extension from "JPG" to "JG"!
    I had to repeat the process by replacing "JG" with "JPG". It worked but was a tad irksome! The same situation applied to any extension containing a "P" in my case. The steps I followed are as follows:
    Go to directory required
    Ctrl & shift, right click, "open PowerShell window here"
    In PowerShell Window, For JPG files:
    Get-Childitem *.jpg | foreach { rename-item $_ $_.Name.Replace("P","") }
    Get-Childitem *.JG | foreach { rename-item $_ $_.Name.Replace("JG","jpg") }
    In PowerShell Window, For MP4 files:
    Get-Childitem *.mp4 | foreach { rename-item $_ $_.Name.Replace("P","") }
    Get-Childitem *.M4 | foreach { rename-item $_ $_.Name.Replace("M4","mp4") }

  • @scottberesford6435
    @scottberesford6435 4 ปีที่แล้ว +1

    Wow. Thank you very much for this video. It worked perfectly! You saved me hours of work!! Thank you!

  • @anjanarajput4787
    @anjanarajput4787 ปีที่แล้ว

    useful and very simple way #beginner..thankyou

  • @amiryusuf2654
    @amiryusuf2654 4 ปีที่แล้ว

    THIS SAVED MY LIFE, THANK YOU!!!

  • @justjustice8968
    @justjustice8968 2 ปีที่แล้ว +1

    THANK YOU!!

  • @fmanchini
    @fmanchini 5 ปีที่แล้ว +3

    This seems very useful! But I have a question: what about if, for example, you want to delete just the first "e" in "ceske", but not the second one (you will end up having "cske" instead in every file)? Thanks in advance!

    • @Rick-lo9sd
      @Rick-lo9sd 4 ปีที่แล้ว +2

      I believe you would need to change from "foreach" as follows:
      foreach {rename-item $_ $_.name.replace("ceske","cske")}

  • @n_hmwn
    @n_hmwn 4 หลายเดือนก่อน

    Thank you! this saves a lot of time

  • @zafarsiddiqui4288
    @zafarsiddiqui4288 3 ปีที่แล้ว +8

    for any type file with same number:
    get-childitem *.* | foreach { rename-item $_ $_.Name.Replace(" (1)", "") }

    • @chiranjibikhatiwadaachal1407
      @chiranjibikhatiwadaachal1407 3 ปีที่แล้ว +2

      thanks

    • @aspentyketraveler4125
      @aspentyketraveler4125 3 ปีที่แล้ว +1

      Thank you so much for typing this command for us to copy and paste. This greatly reduces possible errors from us typing the command.

    • @zafarsiddiqui4288
      @zafarsiddiqui4288 3 ปีที่แล้ว

      @@aspentyketraveler4125 it's so kind of you. Thanks for the thanks.

  • @charlieguere9559
    @charlieguere9559 4 ปีที่แล้ว

    Awesome, just what I needed, saved me hours no doubt.

  • @lilyevans21
    @lilyevans21 ปีที่แล้ว

    It works.OMG! Thank you so much

  • @prabhuv8979
    @prabhuv8979 7 ปีที่แล้ว

    Thanks Dude . Your Explanation Is Very Much To Follow.

  • @deanmoncaster
    @deanmoncaster 5 ปีที่แล้ว +2

    Spot on, great work!

  • @ShihasMohamed
    @ShihasMohamed 5 ปีที่แล้ว +1

    Thank you.!! Worked in the first try

  • @johnnyb9969
    @johnnyb9969 4 ปีที่แล้ว +2

    What about changing multiple FOLDER names? What do you change in this command string to do it for folders?

  • @clintathusaz
    @clintathusaz 3 ปีที่แล้ว

    Fantastic trick!! Thanks for the explanation!

  • @itsjasmine2045
    @itsjasmine2045 ปีที่แล้ว

    worked like a charm, thank you so much!

  • @KalyanKommanapalli
    @KalyanKommanapalli 4 ปีที่แล้ว

    Thanks for your help with this. It works perfectly!

  • @manthenaram9045
    @manthenaram9045 3 ปีที่แล้ว

    This actually helped and working for my scenario, any thoughts to run the command on multiple sub folders in a single command.

  • @meshachkoech2979
    @meshachkoech2979 7 ปีที่แล้ว

    Thank you that was the easiest to follow

  • @thrivenijags
    @thrivenijags 2 ปีที่แล้ว

    Very useful video. Thanks for sharing!

  • @KarenCallahan
    @KarenCallahan ปีที่แล้ว

    Just letting you know - 2023-02-16 this video was all that I needed to fix filenames that had taken a client's staff member 2 days to rename.

  • @Guillotinez
    @Guillotinez 5 ปีที่แล้ว

    Great! Just removed the first 7 digits on mass mp3 files in less than 20 seconds. Thanks!

    • @jonjuelolevittown6888
      @jonjuelolevittown6888 4 ปีที่แล้ว

      What did you change to remove the first 7 characters?? I want to remove the first 4 characters in 900 files... thanks

    • @Guillotinez
      @Guillotinez 4 ปีที่แล้ว

      @@jonjuelolevittown6888
      I used the following:
      get-childitem *.mp3 | foreach {rename-item $_ $_.name.replace("L7n_me_","")}
      Taking in consideration that I wanted to get rid of L7n_me_

    • @jonjuelolevittown6888
      @jonjuelolevittown6888 4 ปีที่แล้ว

      Thanks for the quick reply. I want to remove the first 4 characters of 900+ files but the characters are different on each file. Basically they're
      001 -filename.7z
      002- filename.7z
      003-filename.7z
      Some have:
      z777-filename.7z
      How can I change it for my needs? I played with it but if I just want to remove all the "1" from yhe files, not only does the 1 at the beginning of the file gets removed but any 1 in the file name...

  • @antonioberbe
    @antonioberbe 7 หลายเดือนก่อน

    Life saver! Thanks so much

  • @Itsatarp1337
    @Itsatarp1337 4 ปีที่แล้ว

    Thanks alot sir, you just saved me so much time!

  • @marie-elysebertrand5455
    @marie-elysebertrand5455 5 ปีที่แล้ว

    Thanks dude. I had 3665 files to rename.

  • @subhashps2563
    @subhashps2563 5 ปีที่แล้ว +1

    Working perfectly. Thanks

  • @heerakesavan6904
    @heerakesavan6904 3 ปีที่แล้ว

    Awesome...Really helpful! Thank you!

  • @prajwal07sharma
    @prajwal07sharma 2 ปีที่แล้ว +1

    his is what i wanted but i have mkv file type and its windows 10 powershell, it says .mkv string not found or invalid even though all the files are mkv type.

  • @ravi_569
    @ravi_569 3 ปีที่แล้ว

    Thanks it saves enough time..

  • @fredjammy8598
    @fredjammy8598 3 ปีที่แล้ว +1

    Excellent. I replaced character " - " from png files. Command used ---- get-childitem *.png | foreach {rename-item $_ $_.Name.replace("-","")}

  • @jackt381
    @jackt381 4 ปีที่แล้ว

    Awesome, thank you. Big time saver.

  • @princeghosh774
    @princeghosh774 4 ปีที่แล้ว

    this was a great help. thank you!!

  • @SimonKatende
    @SimonKatende 6 ปีที่แล้ว +4

    Can you show us how you would do that in a powershell script.I tried using your code in a script and its not working :(

    • @ramediosgms7718
      @ramediosgms7718 4 ปีที่แล้ว +1

      Try this
      get-childitem *.mp3| foreach {rename-item $_ $_.name.replace("(","")}

    • @khutsoramalepe4758
      @khutsoramalepe4758 4 ปีที่แล้ว +1

      Ramy B2M thank you 🙏🏽 I was frustrated coz I was not getting it right. But I changed the : with | and it worked

    • @Rick-lo9sd
      @Rick-lo9sd 4 ปีที่แล้ว

      Simon, you would just leave out the first part of the video and start typing in the powershell from where Ramy Gomes noted.

  • @nitin3935
    @nitin3935 3 ปีที่แล้ว

    Thank you Sir, very helpful video. Gracias from India.

  • @fireequipmentdemexico5616
    @fireequipmentdemexico5616 4 ปีที่แล้ว

    Thx! Worked like a charm!

  • @bernatcomermacarrasco5830
    @bernatcomermacarrasco5830 4 ปีที่แล้ว +1

    crystal clear, thank you!

  • @moscheto
    @moscheto 5 ปีที่แล้ว

    saved my life. Thanks!

  • @ivjayaram
    @ivjayaram 5 ปีที่แล้ว

    Thanks a million. It worked!!

  • @rizzimizzi4995
    @rizzimizzi4995 4 ปีที่แล้ว

    Awesome, very helpful.

  • @socialinbox7956
    @socialinbox7956 2 ปีที่แล้ว

    LonG Path Tool is very useful in renaming such files.You should try.

  • @osamasayed8879
    @osamasayed8879 5 ปีที่แล้ว

    thanks alot, u r a life savior

  • @srkdigitalvideoz3430
    @srkdigitalvideoz3430 3 ปีที่แล้ว

    Thank you so much for saving my day

  • @Jonnyrosales
    @Jonnyrosales 4 ปีที่แล้ว

    Thanks so much! You Save my day!!

  • @tomyoung1081
    @tomyoung1081 4 ปีที่แล้ว

    Excellent!! Many thanks 🙏🙏🙏🙏🌹🌹🌹😍😍😍😍😍👍👍👍👍👍❤❤❤❤

  • @riskirills
    @riskirills 4 ปีที่แล้ว

    really helpful.
    have a nice life!

  • @strikerj_
    @strikerj_ 5 ปีที่แล้ว

    Thanks for the help! :)

  • @cvs2fan
    @cvs2fan 2 ปีที่แล้ว

    it works, thank you

  • @Motivationalsoorma
    @Motivationalsoorma 2 หลายเดือนก่อน

    You have told the method to remove anything in bulk but if we want to replace something at that place for example i want to replace .png to .jpg in text what should we do? Please reply

  • @aneeshk8288
    @aneeshk8288 4 ปีที่แล้ว

    Thank you! worked very well

  • @Wailguts
    @Wailguts 5 ปีที่แล้ว

    Great video!

  • @lonerknight7249
    @lonerknight7249 5 ปีที่แล้ว +2

    hey man i got a question for you,i just got a ransomware virus its fixed,ransomware virus are gone but all my file still encripted(idk how to spell that) and i have to remove the what u call the .blabla thing in the end of the file name,the problem is with ur cmd thing i cant remove that .blabla thing.
    for example my file name blabla.dat.ransomware and i need to delete.ransomware.
    thanks goodsir.

  • @luisdealba4126
    @luisdealba4126 4 ปีที่แล้ว +1

    I want to remove periods within the filename but it also removes the file extension.

    • @patrickholland5937
      @patrickholland5937 3 ปีที่แล้ว

      i have the same problem,did u find an solution?

    • @luisdealba4126
      @luisdealba4126 3 ปีที่แล้ว

      @@patrickholland5937 Sorry, never did. I believe I just ended up removing them myself one by one which sucked.

  • @jasonng3239
    @jasonng3239 3 ปีที่แล้ว

    get-chiditem : The term 'get-chiditem' is not recognized as the name of a cmdlet, function, script file, or operable
    program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

    • @delanationhelp4376
      @delanationhelp4376  3 ปีที่แล้ว +1

      Hi, could you type 'get-childitem' ? You need a 'l' between 'i' and 'd'

  • @alvindeguzman1522
    @alvindeguzman1522 4 ปีที่แล้ว

    thank you sooooo much for this!

  • @jacejd6158
    @jacejd6158 3 ปีที่แล้ว +1

    is there any way to use this to remove "#" on all files and "Titles" on all files?

  • @mahadevswamyg
    @mahadevswamyg 5 ปีที่แล้ว

    worked perfectly....thanks

  • @shiniforever
    @shiniforever 3 ปีที่แล้ว

    thank you so much for your video AMAZING

  • @ranjithgaddhe9818
    @ranjithgaddhe9818 4 ปีที่แล้ว

    HOW TO ADD NUMBERS TO FILENAME filename.mp3 (to) 01.fimename.mp3 for multiple files

  • @Xonatron
    @Xonatron 2 ปีที่แล้ว

    Thanks so much!

  • @kabirgupta811
    @kabirgupta811 5 ปีที่แล้ว

    if all file name is of more than 20 character and i want to make it short by keeping only first 5 character from all than what needs to be done

  • @BlackChad792
    @BlackChad792 4 ปีที่แล้ว

    What if I want to remove a specific symbol from multiple FOLDERS, like .mp3 doesn't seem to be right in that case

  • @kellyjohnson5360
    @kellyjohnson5360 4 ปีที่แล้ว

    Parenthesis are being replaced, not brackets - { ( [.. curly, parenthesis and bracket

  • @eat3dhonduras287
    @eat3dhonduras287 3 ปีที่แล้ว

    Awesome!

  • @GrassHopperFried
    @GrassHopperFried 3 ปีที่แล้ว

    what do you do if the word your trying to get rid of is lets say a Chinese character, how would you input that?

  • @quadrosbr
    @quadrosbr 4 ปีที่แล้ว

    Didn't work for me. It shows:
    Get-ChildItem : A positional parameter cannot be found that accepts argument 'foreach'.
    At line:1 char:1
    + get-childitem *.pdf : foreach {rename-item $_ $_.name.replace("-"," " ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (:) [Get-ChildItem], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

  • @unattended129
    @unattended129 3 ปีที่แล้ว

    Thank you very much!

  • @malar8114
    @malar8114 3 ปีที่แล้ว

    dear , how to give rename permission with giving delete permission in windows 2019, user can rename their files but don't delete it..please advice me.