Syntax filesystemobject.GetParentFolderName(foldername) The GetParentFolderName() method gets the name of the parent folder.This method takes foldername as its only parameter. Get the parent folder name for "subtmp" folder.