pFileSizePointer to a variable that receives a property value.FileSizeNew file's size.
Return Value
Automation:Current file's size.Native:
S_OK or standard OLE error code.
Native:
S_OK or standard OLE error code.
Remarks
Retrieve or change the current file's size. When used to change the file's size, new operation is created in document's operation history. Complexity: constant-time.
Examples
Setting file's size
JavaScriptCopy Code
var fdoc = new ActiveXObject("FileDocument.FileDocument");
fdoc.New(); // initialize a new, empty document
fdoc.FileSize = 1024*1024; // set the size of the file to 1 MB
fdoc.SaveAs("c:\\temp\\file.bin");