Syntax filesystemobject.GetFileName(filename) The GetFileName() method gets a specified filename.This method takes filename as its only parameter. Get the name value for the file "test.txt"