"(" 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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -