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

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

delanationHelp

7 лет назад

134,831 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

chintal thacker
chintal thacker - 06.11.2023 13:02

Very helpful to complete tedious work in just one command👻

Ответить
Xhin maranan
Xhin maranan - 08.10.2023 19:14

The most basic thing and i will kill chat gpt for that bad coding

Ответить
Vez Channel
Vez Channel - 24.09.2023 06:17

i cant do it with my .xlsx files :(

Ответить
It’s Jasmine
It’s Jasmine - 02.08.2023 12:26

worked like a charm, thank you so much!

Ответить
Ikke mijnnaam
Ikke mijnnaam - 09.06.2023 18:30

What are you doing mate ? You got time on your hands or something ? Whatttttttttt are you doing ???? You do realize that there are programs like : Easy file renamer ? Sooooo by the time you finished your first command I already finished 3 folder with 1000 filenames ! You really need to start using your brain mate.... seriously !

Ответить
Martin Hendrix
Martin Hendrix - 13.05.2023 21:31

get-childitem *.txt | foreach {rename-item $_ $_.name.replace("_"," ")} This is what I and trying to do, I make batch files to make long list of file names, but in the batch files I have to use _ in places of Spaces. but seems this command can not use spaces, any Idea what do or how to get this done in Batch files or something?

Ответить
declice
declice - 11.05.2023 13:54

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

U welcome
This was super inconvenient to type with my keyboard language .

Ответить
Lily Evans
Lily Evans - 08.04.2023 15:58

It works.OMG! Thank you so much

Ответить
spinbubba
spinbubba - 02.03.2023 04:24

:)

Ответить
Karen Callahan-G
Karen Callahan-G - 16.02.2023 23:41

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.

Ответить
Pajo
Pajo - 16.01.2023 21:32

don't work on win 11.

Ответить
Unreal DevOP
Unreal DevOP - 23.10.2022 03:11

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.

Ответить
The Galaga King
The Galaga King - 03.09.2022 07:21

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!

Ответить
Dian Velichkov
Dian Velichkov - 15.08.2022 00:50

Thanks man !
get-childitem *.here you place the format of files | foreach {rename-item $_ $_.Name.replace("here you place the symbol you want to remove","")}

Ответить
Zboo Kof
Zboo Kof - 11.08.2022 08:30

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

I had to rename 103 files, this helped me a lot

Ответить
Gandhi_Physique
Gandhi_Physique - 10.08.2022 20:10

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?

Ответить
JustJustice
JustJustice - 11.07.2022 05:16

THANK YOU!!

Ответить
Munif Fachrudin
Munif Fachrudin - 17.06.2022 16:28

thank youuuuuuuu

Ответить
Pardeep Kumar
Pardeep Kumar - 09.05.2022 14:04

i am getting this error Get-ChildItem : A positional parameter cannot be found that accepts argument 'foreach'.

code used: PS D:\OneDrive Main Backup\OneDrive\Pictures\Camera Roll\2021\10> get-childitem *.jpg : foreach {rename-item $_ $_.name.replace(" -copy","")}

Ответить
Steven Whiting
Steven Whiting - 08.03.2022 03:03

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.

Ответить
Mei
Mei - 01.03.2022 22:52

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

Ответить
Thriveni Jags
Thriveni Jags - 25.02.2022 19:22

Very useful video. Thanks for sharing!

Ответить
Matthew Doucette
Matthew Doucette - 04.02.2022 20:13

Thanks so much!

Ответить
cvs sato
cvs sato - 20.12.2021 05:47

it works, thank you

Ответить
beenay18
beenay18 - 11.11.2021 11:40

what is "bar"? is it a colon?

Ответить
B1RD
B1RD - 26.10.2021 14:03

thank you so fucking much man. CHEERS!

Ответить
Prajwal Sharma
Prajwal Sharma - 16.10.2021 23:04

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.

Ответить
dan dan
dan dan - 08.09.2021 10:14

thank you!

Ответить
o ωo DJsanwit
o ωo DJsanwit - 30.08.2021 01:57

' w')b Thanks

Ответить
Jason Ng
Jason Ng - 16.08.2021 04:19

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.

Ответить
Riza Muradli
Riza Muradli - 09.08.2021 23:08

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

Ответить
A.P. Laurenson
A.P. Laurenson - 05.07.2021 19:11

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.

Ответить
Eat 3D HONDURAS
Eat 3D HONDURAS - 18.06.2021 20:56

Awesome!

Ответить
Eat 3D HONDURAS
Eat 3D HONDURAS - 18.06.2021 20:01

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.

Ответить
Ravi Kumar
Ravi Kumar - 10.06.2021 20:40

Thanks it saves enough time..

Ответить
NITIN
NITIN - 09.06.2021 12:15

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

Ответить
Zohar Gafni
Zohar Gafni - 06.06.2021 13:19

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?

Ответить
srkdigital videoz
srkdigital videoz - 31.05.2021 17:01

Thank you so much for saving my day

Ответить
Ethan Byun
Ethan Byun - 11.05.2021 01:16

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

Ответить
Zain Ul Abidin
Zain Ul Abidin - 09.05.2021 23:21

thanks dude

Ответить
Unattended 129
Unattended 129 - 09.05.2021 10:43

Thank you very much!

Ответить
jorgemt62
jorgemt62 - 09.04.2021 05:59

Merci beacoup!

Ответить
Meiji Meowth
Meiji Meowth - 07.04.2021 02:47

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

Ответить
Mei AT
Mei AT - 25.03.2021 03:21

For me it works with the sign "|" but not colon ":"

Ответить
737 CL
737 CL - 15.03.2021 05:15

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

Ответить
AFZAL ZAMIR ANSARI
AFZAL ZAMIR ANSARI - 27.02.2021 12:40

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

Ответить
Hugh Mann
Hugh Mann - 25.02.2021 13:56

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

Ответить