tumblr tracker

GetFileSize

Library Reference ›› File ››
Parent Previous Next

File.GetFileSize


Namespace: File


Returns the size of a file.


retval = File.GetFileSize(Path)


Parameters:

- Path; string constant or variable containing the file path to check the size


Returns:

size of the file in bytes; numeric value.


Example


$somefile = "C:\TEMP\0000011.pdf";
MessageBox.ShowInfo("Size of '" + $somefile + "' is " + File.GetFileSize($somefile));