I have a string as follows, although it throws an error when it gets to the colon, I have used @ to escape everything:
string vmListCommand = @"vim-cmd vmsvc/getallvms | sed '1d' | awk '{if ($1 > 0) print $1":"$2}'";
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.
Remove
@and escape double quotes using\:You wrote:
@is used to change escaping bahaviour, not to escape everything. If a string is prefixed with@then escape sequences (\) are ignored.