Futurebasic/Language/Reference/usr fsgetfoldername

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.

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