Command line arguments, paths with spaces, parsing incorrectly

后端 未结 3 1919
被撕碎了的回忆
被撕碎了的回忆 2021-01-25 02:22

I have an issue that\'s nearly identical to the one outlined here (Console app not parsing correctly args with white spaces) but that answer has no bearing on my situation.

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-25 02:39

    It is because youre slash here Working\", when you add another slash it works correctly I believe so make It ...Working\\"

    edit: I just tested it myself, with a double \\ you get 3 items :)

    enter image description here

    Also see http://blogs.msdn.com/b/twistylittlepassagesallalike/archive/2011/04/23/everyone-quotes-arguments-the-wrong-way.aspx

提交回复
热议问题