Futurebasic/Language/Reference/usr getfoldername

Usr FSGetFolderName(fsSpec, folderName$)

Revised August, 2002 (Release 7)

Description - This function returns the name of the folder that contains the file specified by fsSpec.

Note: You will not be able to use this function unless you include the proper header file as follows: Include "Util_Files.incl"

Example:

Include "Util_Files.incl"

Dim fs As FSSpec

Dim x,name$ name$ = Files$(_FSSpecOpen,,,fs) x = Usr FSGetFolderName(fs,name$)

Print name$ Do HandleEvents Until 0

See Also FINDERINFO, FILES$; USR SCANFOLDER