Windows _popen 会吃了前后双引号
Windows _popen函数 会吃了前后双引号.
例如,
"c:/a sd/blhost" -u -- write-memory 0x70010000 "c:/a sd/asd.bin"
会被吃掉前后引号变为
c:/a sd/blhost" -u -- write-memory 0x70010000 "c:/a sd/asd.bin
解决办法是增加额外的引号, 即
""c:/a sd/blhost" -u -- write-memory 0x70010000 "c:/a sd/asd.bin"
然后被吃掉前后引号变为
"c:/a sd/blhost" -u -- write-memory 0x70010000 "c:/a sd/asd.bin
(最后面的引号研究不深入, 好像会补回去)