FileSystem.FileSize(String) Method

Top 

Description

Returns the size of the file in bytes. If the specific path is a directory or the file does not exist, an error will be reported.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

FileSystem.FileSize(

String path)

 

 

Arguments

path


Description:

The path to the file whose size is to be returned.

 

 

 

Return Value

Type:

number

 

 

Returns the size of the file in bytes.

 

Syntax

myVariable1 = FileSystem.FileSize(myString1);

 

 

See also

FileSystem Object

Interfacing with Files Guide