系统无法在Application的消息文件中找到消息号0x2331的消息文本。我尝试使用'system(“ren ref.txt ref1.txt”)在perl程序中重命名该文件;'虽然我之前关闭了ref.txt的文件处理程序
答案 0 :(得分:2)
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");