1
我需要重命名一个文件到zip,我尝试这个代码,但不起作用。如何在Inno安装程序的代码中重命名文件?
Exec('cmd.exe', 'rename '+ExpandConstant('{app}\scripts\set.bat'+' set.zip'), '', SW_SHOW,
ewWaitUntilTerminated, ResultCode);
我发现了一个办法做到这一点上[Run]
部分,但我需要它在[Code]
节做。
RenameFile()http://www.jrsoftware.org/ishelp/index.php?topic = isxfunc_renamefile –