Это видео недоступно.
Сожалеем об этом.

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

Поделиться
HTML-код
  • Опубликовано: 19 май 2017

Комментарии • 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

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

  • @MeetMalli
    @MeetMalli 4 года назад +34

    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.

    • @caelum-natura
      @caelum-natura 4 года назад +1

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

    • @MeetMalli
      @MeetMalli 4 года назад +3

      @@caelum-natura 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.

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

  • @ellipseguidegrl
    @ellipseguidegrl 4 года назад +8

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

  • @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 !
    🙂🙏❤

  • @piuditto
    @piuditto 3 года назад +2

    You just saved me from manually changing file names of 7500 images. 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

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

  • @FTWQ
    @FTWQ 5 лет назад +6

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

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

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

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

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

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

  • @sirojajam55
    @sirojajam55 4 года назад

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

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

  • @machiii-
    @machiii- 7 месяцев назад

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

  • @r.jimlad4826
    @r.jimlad4826 4 года назад +1

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

  • @ramakanth3394
    @ramakanth3394 4 года назад

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

  • @scottberesford6435
    @scottberesford6435 4 года назад +1

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

  • @Don8Maverick
    @Don8Maverick 4 года назад

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

  • @realcharlebois8481
    @realcharlebois8481 6 лет назад

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

  • @chintalthacker448
    @chintalthacker448 9 месяцев назад

    Very helpful to complete tedious work in just one command👻

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

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

  • @rizamuradli4206
    @rizamuradli4206 3 года назад

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

  • @mrau92me
    @mrau92me 4 года назад +1

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

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

  • @johnnyb9969
    @johnnyb9969 4 года назад +2

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

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

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

  • @lilyevans21
    @lilyevans21 Год назад

    It works.OMG! Thank you so much

  • @n_hmwn
    @n_hmwn 4 месяца назад

    Thank you! this saves a lot of time

  • @TachiKuma
    @TachiKuma 6 лет назад +3

    This made my day! 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.

  • @neonsolace2748
    @neonsolace2748 4 года назад +3

    a great way to fix ransomware

  • @charlieguere9559
    @charlieguere9559 4 года назад

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

  • @prabhuv8979
    @prabhuv8979 7 лет назад

    Thanks Dude . Your Explanation Is Very Much To Follow.

  • @amiryusuf2654
    @amiryusuf2654 4 года назад

    THIS SAVED MY LIFE, 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")}

  • @justjustice8968
    @justjustice8968 2 года назад +1

    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

  • @KalyanKommanapalli
    @KalyanKommanapalli 4 года назад

    Thanks for your help with this. It works perfectly!

  • @itsjasmine2045
    @itsjasmine2045 Год назад

    worked like a charm, thank you so much!

  • @ShihasMohamed
    @ShihasMohamed 4 года назад +1

    Thank you.!! Worked in the first try

  • @Guillotinez
    @Guillotinez 4 года назад

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

  • @Itsatarp1337
    @Itsatarp1337 4 года назад

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

  • @clintathusaz
    @clintathusaz 3 года назад

    Fantastic trick!! Thanks for the explanation!

  • @anjanarajput4787
    @anjanarajput4787 Год назад

    useful and very simple way #beginner..thankyou

  • @antonioberbe
    @antonioberbe 7 месяцев назад

    Life saver! Thanks so much

  • @nitin3935
    @nitin3935 3 года назад

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

  • @jacejd6158
    @jacejd6158 3 года назад +1

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

  • @deanmoncaster
    @deanmoncaster 5 лет назад +2

    Spot on, great work!

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

  • @thrivenijags
    @thrivenijags 2 года назад

    Very useful video. Thanks for sharing!

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

  • @meshachkoech2979
    @meshachkoech2979 7 лет назад

    Thank you that was the easiest to follow

  • @fredjammy8598
    @fredjammy8598 3 года назад +1

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

  • @socialinbox7956
    @socialinbox7956 2 года назад

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

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

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

  • @subhashps2563
    @subhashps2563 5 лет назад +1

    Working perfectly. Thanks

  • @heerakesavan6904
    @heerakesavan6904 3 года назад

    Awesome...Really helpful! Thank you!

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

  • @princeghosh774
    @princeghosh774 4 года назад

    this was a great help. thank you!!

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

  • @marie-elysebertrand5455
    @marie-elysebertrand5455 5 лет назад

    Thanks dude. I had 3665 files to rename.

  • @jackt381
    @jackt381 4 года назад

    Awesome, thank you. Big time saver.

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

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

  • @ranjithgaddhe9818
    @ranjithgaddhe9818 4 года назад

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

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

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

  • @737cl9
    @737cl9 3 года назад

    How to do for files in subfolder...???

  • @fireequipmentdemexico5616
    @fireequipmentdemexico5616 4 года назад

    Thx! Worked like a charm!

  • @moscheto
    @moscheto 5 лет назад

    saved my life. Thanks!

  • @zbookof3399
    @zbookof3399 2 года назад

    get-childitem *.jpg | foreach {rename-item $_ $_.name.replace(" change this","to this")}
    I had to rename 103 files, this helped me a lot

  • @ivjayaram
    @ivjayaram 5 лет назад

    Thanks a million. It worked!!

  • @srkdigitalvideoz3430
    @srkdigitalvideoz3430 3 года назад

    Thank you so much for saving my day

  • @ravi_569
    @ravi_569 3 года назад

    Thanks it saves enough time..

  • @tomyoung1081
    @tomyoung1081 4 года назад

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

  • @mvvmanikanta4728
    @mvvmanikanta4728 6 месяцев назад

    Could anyone please type the code, I'm getting error

  • @bernatcomermacarrasco5830
    @bernatcomermacarrasco5830 4 года назад +1

    crystal clear, 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.

  • @afzalzamiransari
    @afzalzamiransari 3 года назад

    how to remove a specific character from multiple folder name at a time

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

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

  • @ayonferdous4384
    @ayonferdous4384 4 года назад

    can someone tell me how to overwrite the old when the new file is being saved there so that at any given time, there is only one file in the folder?

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

  • @mei4195
    @mei4195 2 года назад

    Hi! its working but it has space before the bracket so I want to delete the space too, how to delete the space?

    • @mei4195
      @mei4195 2 года назад

      nevermind I got it thank you so much

  • @osamasayed8879
    @osamasayed8879 5 лет назад

    thanks alot, u r a life savior

  • @Xonatron
    @Xonatron 2 года назад

    Thanks so much!

  • @cvs2fan
    @cvs2fan 2 года назад

    it works, thank you

  • @Didadeeee
    @Didadeeee 4 года назад

    Hi I just tried but it did not work.
    This is what I typed:
    get-childitem *.jpg | foreach {rename-item $_ $_.name.replace}
    Let me know how should I do it. Thank you!!

    • @mei4195
      @mei4195 2 года назад

      hi its super late but its using normal bracket "( )" not "< >"
      change it to:
      get-childitem *.PNG | foreach {rename-item $_ $_.name.replace("mini-","")}