I would like to set a string with special chars in it ($ for example).
How can I save a string as a raw string?
$B = “A$$B” isnt saved as “A$$B”.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the string is in
'(single quotes) the variables ( like$x) are not expanded.Also, Powershell has
here-stringsmuch like verbatim strings in C#http://blogs.msdn.com/b/powershell/archive/2006/07/15/variable-expansion-in-strings-and-herestrings.aspx