这个只能自己写脚本,判断、复制函数有内置的:
int FileSize(str)
Returns size, in bytes, of the specified file. If the filedo
es not exist, the result is -1. Beware of ISPP supporting only signed 32 bit integers: for files larger than 2 GB (and smaller than 4 GB) the result is negative.
void CopyFile(str 1, str 2)
Copies a file.
void DeleteFile(str)
Marks file for deletion after compilation isdo
ne (no matter successful it was or not).do
es not return anything.
str GetFileVersion(str)
GetFileVersion function takes string argument which must be set to the name of the file whose version information is to be queried. The function returns string composed of four decimal numbers delimitted with periods. If filedo
es not contain valid version info, the function returns an empty string.
ISPP also has GetStringFileInfo function, which also can be used to retrieve file version (using "FileVersion"
or "ProductVersion"
as second parameter). The difference is that GetFileVersion takes it from fixed block of version info, unlike GetStringFileInfo, which extracts string from language specific block.