"(" char doesn't work in PowerShell -


I can not get it to work, it does not like it "(" four;

How can I fix it?

  Dir | Rename - Item - New Name {$ _. Name "" ("", ""}   

How can I manage this type of special character in PowerShell?

Has found a great explanation for the exact cause of your problem, but it is a very simple solution. The operator uses regular expressions that need to be avoided, but . Replace () string method only uses strings. So if you do not need a rezux, just Use the method and there is no need to avoid anything:

  Dir | rename-item -newname {$ _. Name.Replace ("(", ""}}    

Comments

Popular posts from this blog

sonata admin - how to add ManyToOne property field in configureListfield in sonataAdmin -

wpf - ControlTemplate with changes for every class -

sql - Return Function using Cursor -