C# string handling how get path and args from a string -


I have a string with quotation marks around the path:

"C: \ Program Files (X86) \ Windows Media Player \ wmplayer.exe "arg1 arg2

If I use Text.Split (new four [] {''}, 2); Try splitting on two quotes (text split (new four [] {/ code>

  string [] Path and arrags = text Sample (new four [] {'/' '}, 3); String [] args = pathAndArgs [2] .plate (new four [] {''}, 2);  

I may have a syntax error, but what do you mean to me.


Comments

Popular posts from this blog

c# - PInvoke of NetUserAdd returns 24 -

c# - XMLDocument.Validate Error: System.InvalidOperationException : The XmlSchemaSet on the document is either null or has no schemas in it -