1

系统在应用程序的消息文件中找不到消息号 0x2331 的消息文本。我尝试使用'system(“ren ref.txt ref1.txt”)从perl程序中重命名文件;' 虽然我之前已经关闭了 ref.txt 的文件处理程序

4

1 回答 1

2

参考: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.

ren是命令行功能,不是独立程序。尝试

system("cmd /k ren ref.txt ref1.txt");

代替

system("ren ref.txt ref1.txt");
于 2012-11-21T07:12:47.547 回答