FileSystem.GetFileExtension(String) Method

Top 

Description

Returns the extension of the file located at path. The extension of the file consists of any characters present after the rightmost period.

 

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.GetFileExtension(

String path)

 

 

Arguments

path


Description:

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

 

 

 

Return Value

Type:

string

 

 

Returns the file extension of the file specified by the path argument.

 

Syntax

myString1 = FileSystem.GetFileExtension(myString2);

 

 

See also

FileSystem Object

Interfacing with Files Guide