** looking for *.pdf files cDir=GETFILE('PDF', 'Select a file') _cliptext=(cDir) &&put the name of the directory on the clipboard if required if empty(cDir) messagebox(cDir+" does not exist","") *put the code to create a new directory else cd (cDir) && to go to directory *or put your code here to make use of the cDir (directory name) ENDIF