%FileSize function


Old name
%FileSizeI


Function

The function returns the size of the specified file in the specified units (if not specified, then kilobytes [1kB = 1024 B]).
The result is an integer value.

Declaration
INT %FileSize(
   TEXT in FileName,
   INT in Units := 1024
 )
Parameters
FileNameFilename (including full path).
UnitsUnits (positive number, most often 1, 1000, 1024, 1000000 and so on).
Example
%FileSize("D:\D2000.EXE\kernel.exe", 1)
Napíšte komentár