作者:sunhuan | 来源:互联网 | 2024-12-23 16:21
Ihaveastringwithquotesaroundthepathasfollows:我在路径周围有一个带引号的字符串,如下所示:C:\ProgramFiles(x
I have a string with quotes around the path as follows:
我在路径周围有一个带引号的字符串,如下所示:
"C:\Program Files (x86)\Windows Media Player\wmplayer.exe" arg1 arg2
“C:\ Program Files(x86)\ Windows Media Player \ wmplayer.exe”arg1 arg2
If I use Text.Split(new Char[] { ' ' }, 2);
then I get the first space.
如果我使用Text.Split(new Char [] {''},2);然后我得到了第一个空间。
How to get the path and args ?
如何获得路径和args?
3 个解决方案