quick-cocos2d-x 执行系统命令system( "rd /s /q xxx")后,print("...")输出都乱了
2017-04-18 21:41
447 查看
用这个网页介绍的方法做热更新补丁 http://www.cocoachina.com/bbs/read.php?tid=213061
发现一个问题,删除文件夹的方法是:
这个代码有一个副作用,就是会导致Windows调试情况下,控制台输出调试信息的print("...")出问题,
实际逻辑没问题,只是print("...")都乱了。这样不方便调试。
解决方法就是去网上搜一个用API实现的删除文件夹的代码,替换system( "rd /s /q xxx")的方式
发现一个问题,删除文件夹的方法是:
string command = "rd /s /q "; command += "\"" + string(path) + "\""; succ = system(command.c_str());
这个代码有一个副作用,就是会导致Windows调试情况下,控制台输出调试信息的print("...")出问题,
实际逻辑没问题,只是print("...")都乱了。这样不方便调试。
解决方法就是去网上搜一个用API实现的删除文件夹的代码,替换system( "rd /s /q xxx")的方式
相关文章推荐
- python调用os.system执行系统命令,中文输出显示乱码
- PHP 执行系统外部命令 system() exec() passthru()
- PHP 执行系统外部命令 system() exec() passthru()
- Python执行系统命令的方法 os.system(),os.popen(),commands - renwofei423的个人空间 - 开源中国社区
- Python执行系统命令的方法 os.system(),os.popen(),commands
- PHP 执行系统外部命令 system() exec() passthru()
- Python执行系统命令的方法 os.system(),os.popen(),commands
- PHP 执行系统外部命令 system() exec() passthru()
- PHP 执行系统外部命令 system() exec() passthru()
- Python执行系统命令的方法 os.system(),os.popen(),commands
- PHP 执行系统外部命令 system() exec() passthru()
- Python执行系统命令的方法 os.system(),os.popen(),commands
- [转]Python执行系统命令的方法 os.system(),os.popen(),commands
- Python执行系统命令,os.system && os.popen && subprocess.Popen
- PHP 执行系统外部命令 system() exec() passthru()
- Python执行系统命令的方法 os.system(),os.popen(),commands
- Python执行系统命令的方法 os.system(),os.popen(),commands
- PHP如何执行Linux系统命令呢?system();exec();popen();函数
- C++调用系统终端执行命令,将输出保存到文件中
- PHP执行系统外部命令函数:exec()、passthru()、system()、shell_exec()