Extension Property

       

Returns the extension for the specified file. Read-only String.

Example

This statement returns the extension of the home page.

myHomePageExt = ActiveWeb.RootFolder.File(0).Extension