String Array of All this Commands

How can I create one a String Array of All this Commands?

 

Since double quotation marks conflict with string markup, you need to escape them. You can escape double quotation marks (as well as any other special symbol) by adding \ in front. For example: var str = "foo \"bar\"".

In your context that would look like: string[] parameters = new string[] { "Icacls \"D:\Program Files(x86)\" /grant %Username%:F /t /c" };

P.S. params is a reserved keyword and cannot be used as a variable name.

LEAVE A REPLY

Please enter your comment!
Please enter your name here