411 REFERENCE · Wikibooks
Futurebasic/Language/Reference/usr fsgetfoldername
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
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