GetExtensionName method
Returns a string containing the extension name for the last component in a path.
Syntax
object.GetExtensionName (path)
The GetExtensionName method syntax has these parts:
Part | Description |
---|---|
object | Required. Always the name of a FileSystemObject. |
path | Required. The path specification for the component whose extension name is to be returned. |
Remarks
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.
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.