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

Поділитися
Вставка
  • Опубліковано 23 сер 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".

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

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

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

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

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

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

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

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

  • @FTWQ
    @FTWQ 5 років тому +6

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

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

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

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

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

  • @sirojajam55
    @sirojajam55 4 роки тому

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

  • @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 :)

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

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

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

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

  • @r.jimlad4826
    @r.jimlad4826 4 роки тому +1

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

  • @realcharlebois8481
    @realcharlebois8481 6 років тому

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

  • @TheGalagaKing
    @TheGalagaKing 2 роки тому +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!

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

  • @mrau92me
    @mrau92me 4 роки тому +1

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

  • @zafarsiddiqui4288
    @zafarsiddiqui4288 3 роки тому +8

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

  • @rizamuradli4206
    @rizamuradli4206 3 роки тому

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

  • @scottberesford6435
    @scottberesford6435 4 роки тому +1

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

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

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

    Very helpful to complete tedious work in just one command👻

  • @johnnyb9969
    @johnnyb9969 4 роки тому +2

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

  • @TachiKuma
    @TachiKuma 6 років тому +3

    This made my day! Thank you!!

  • @neonsolace2748
    @neonsolace2748 4 роки тому +3

    a great way to fix ransomware

  • @charlieguere9559
    @charlieguere9559 4 роки тому

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

  • @justjustice8968
    @justjustice8968 2 роки тому +1

    THANK YOU!!

  • @amiryusuf2654
    @amiryusuf2654 4 роки тому

    THIS SAVED MY LIFE, 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.

  • @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")}

  • @prabhuv8979
    @prabhuv8979 7 років тому

    Thanks Dude . Your Explanation Is Very Much To Follow.

  • @itsjasmine2045
    @itsjasmine2045 Рік тому

    worked like a charm, thank you so much!

  • @KalyanKommanapalli
    @KalyanKommanapalli 4 роки тому

    Thanks for your help with this. It works perfectly!

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

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

    Thank you! this saves a lot of time

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

  • @lilyevans21
    @lilyevans21 Рік тому

    It works.OMG! Thank you so much

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

  • @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") }

  • @deanmoncaster
    @deanmoncaster 5 років тому +2

    Spot on, great work!

  • @Itsatarp1337
    @Itsatarp1337 4 роки тому

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

  • @ShihasMohamed
    @ShihasMohamed 5 років тому +1

    Thank you.!! Worked in the first try

  • @clintathusaz
    @clintathusaz 3 роки тому

    Fantastic trick!! Thanks for the explanation!

  • @thrivenijags
    @thrivenijags 2 роки тому

    Very useful video. Thanks for sharing!

  • @nitin3935
    @nitin3935 3 роки тому

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

  • @anjanarajput4787
    @anjanarajput4787 Рік тому

    useful and very simple way #beginner..thankyou

  • @subhashps2563
    @subhashps2563 5 років тому +1

    Working perfectly. Thanks

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

    Life saver! Thanks so much

  • @heerakesavan6904
    @heerakesavan6904 3 роки тому

    Awesome...Really helpful! Thank you!

  • @jackt381
    @jackt381 4 роки тому

    Awesome, thank you. Big time saver.

  • @meshachkoech2979
    @meshachkoech2979 7 років тому

    Thank you that was the easiest to follow

  • @princeghosh774
    @princeghosh774 4 роки тому

    this was a great help. thank you!!

  • @marie-elysebertrand5455
    @marie-elysebertrand5455 5 років тому

    Thanks dude. I had 3665 files to rename.

  • @bernatcomermacarrasco5830
    @bernatcomermacarrasco5830 4 роки тому +1

    crystal clear, thank you!

  • @fredjammy8598
    @fredjammy8598 3 роки тому +1

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

  • @jacejd6158
    @jacejd6158 3 роки тому +1

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

  • @ivjayaram
    @ivjayaram 5 років тому

    Thanks a million. It worked!!

  • @fireequipmentdemexico5616
    @fireequipmentdemexico5616 4 роки тому

    Thx! Worked like a charm!

  • @rizzimizzi4995
    @rizzimizzi4995 4 роки тому

    Awesome, very helpful.

  • @tomyoung1081
    @tomyoung1081 4 роки тому

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

  • @srkdigitalvideoz3430
    @srkdigitalvideoz3430 3 роки тому

    Thank you so much for saving my day

  • @ravi_569
    @ravi_569 3 роки тому

    Thanks it saves enough time..

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

  • @moscheto
    @moscheto 6 років тому

    saved my life. Thanks!

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

  • @Jonnyrosales
    @Jonnyrosales 4 роки тому

    Thanks so much! You Save my day!!

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

  • @Gandhi_Physique
    @Gandhi_Physique 2 роки тому

    Is it possible to use a regex in this command? For example, I have a lot of file in a format: Name - Title, so would it be possible to remove everything before the title of the work?

  • @aneeshk8288
    @aneeshk8288 4 роки тому

    Thank you! worked very well

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

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

  • @shiniforever
    @shiniforever 3 роки тому

    thank you so much for your video AMAZING

  • @strikerj_
    @strikerj_ 5 років тому

    Thanks for the help! :)

  • @Xonatron
    @Xonatron 2 роки тому

    Thanks so much!

  • @masa9921
    @masa9921 4 роки тому

    sorry to ask but what about folders? they don't have any format

  • @zohargafni8605
    @zohargafni8605 3 роки тому

    Hi! I tried to do the same thing but with a dot. (e.g.Majorca .MP-016.jpg) but it also removes the dot from the file type... Any ideas what should I do?

  • @mahadevswamyg
    @mahadevswamyg 5 років тому

    worked perfectly....thanks

  • @cvs2fan
    @cvs2fan 2 роки тому

    it works, thank you

  • @alvindeguzman1522
    @alvindeguzman1522 4 роки тому

    thank you sooooo much for this!

  • @riskirills
    @riskirills 4 роки тому

    really helpful.
    have a nice life!

  • @unattended129
    @unattended129 3 роки тому

    Thank you very much!

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

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

  • @leugimzeuqirne8238
    @leugimzeuqirne8238 3 роки тому

    sir, i have many video files without ext in one folder and i want to add extension of .MP4, can you help me for the code. Thank you.

  • @kellyjohnson5360
    @kellyjohnson5360 4 роки тому

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

  • @Wailguts
    @Wailguts 5 років тому

    Great video!

  • @eat3dhonduras287
    @eat3dhonduras287 3 роки тому

    Dear instructor, i did evething just like you an error popup to me , can not rename because does not exist the file, do you know why is that? my file name has a {} that why does not work.