Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
系统在应用程序的消息文件中找不到消息号 0x2331 的消息文本。我尝试使用'system(“ren ref.txt ref1.txt”)从perl程序中重命名文件;' 虽然我之前已经关闭了 ref.txt 的文件处理程序
参考:http ://www.febooti.com/products/automation-workshop/online-help/events/run-dos-cmd-command/exit-codes/
0x2331方法Program is not recognized as an internal or external command, operable program or batch file.
0x2331
Program is not recognized as an internal or external command, operable program or batch file.
ren是命令行功能,不是独立程序。尝试
ren
system("cmd /k ren ref.txt ref1.txt");
代替
system("ren ref.txt ref1.txt");