object.GetExtensionName(path)
For network drives, the root directory (\) is considered to be a component.
The GetExtensionName method returns a zero-length string ("") if no component matches the path argument.
BuildPath Method | GetBaseName Method | GetDrive Method | GetDriveName Method | GetFile Method | GetFolder Method | GetParentFolderName Method | GetSpecialFolder Method | GetTempName MethodApplies To: FileSystemObject Object