开发者

How to use Inno Setup scripting to append to a text file?

开发者 https://www.devze.com 2022-12-25 14:55 出处:网络
How c开发者_高级运维an I append text to a file?You can use the SaveStringToFile() function to append text to a file.fileName := ExpandConstant(\'{pf}\\{#MyAppName}\\batch.bat\');

How c开发者_高级运维an I append text to a file?


You can use the SaveStringToFile() function to append text to a file.


fileName := ExpandConstant('{pf}\{#MyAppName}\batch.bat');
SetArrayLength(lines, 3);
lines[0] := 'echo hello';
lines[1] := 'pause';
lines[2] := 'exit';
Result := SaveStringsToFile(filename,lines,true);
0

精彩评论

暂无评论...
验证码 换一张
取 消