Hi,
please have patience with the cat
[Attachment 86417 - Click to enlarge]
thanks.
I try to do a renamer for files with special character in powershell
but this acts on ALL file, meanwhile I need it acts only on *.mp3 and *.mp4 filesCode:dir | % {$_ | rename-item -NewName $_.name.replace('%','').replace('#','').replace('_',' ').replace('!',' ').replace('[',' ').replace(']',' ').replace('{',' ').replace('}',' ').replace('&',' ').replace('?',' ').replace(',',' ').replace(';',' ').replace(':',' ').replace('$',' ').replace('^',' ').replace('\',' ').replace('"',' ').replace('@',' ').replace('*',' ').replace('(',' ').replace(')',' ').replace('-',' ').replace('=',' ').replace('+',' ').replace('/',' ').replace('.',' ').replace('>',' ') -ErrorAction SilentlyContinue}
How I can do?
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
Issue with unicode characters when encoding a subtitle file
By Hemer in forum SubtitleReplies: 1Last Post: 2nd Jul 2024, 05:33 -
Rename single file in a directory based on the content of a txt file
By D.LUFFY in forum ProgrammingReplies: 3Last Post: 7th Jun 2023, 12:16 -
How to get media info using powershell?
By iKron in forum Newbie / General discussionsReplies: 1Last Post: 6th May 2022, 08:53 -
how to delete file in powershell only if exist
By marcorocchini in forum Newbie / General discussionsReplies: 3Last Post: 21st Mar 2022, 23:25 -
how to deal with special characters such as french accents
By inklara in forum Video Streaming DownloadingReplies: 7Last Post: 10th Jan 2022, 11:13