Syntax filesystemobject.GetBaseName(path) path specifies the component whose base name is to be returned.The GetBaseName() method returns a string containing the base name of a file or folder, without any extension or path.