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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -