Syntax filesystemobject.GetExtensionName(path) The GetExtensionName() method gets the file extension name for a specified file.This method takes path as its only parameter. Get the extension for the file "testing.txt".