Function:
filespec
┴╓: stem.0 contains the number of files and/or directories found.
F
YY/MM/DD/HH/MMO
Mask Options
Examples:
Mask Options
Examples:
┴╓: You cannot set the directory bit on non-directory filespecs. The attribute field which is displayed in the stem variable is that of the current attribute setting after any changes have been applied.
Examples:
/****<< Syntax Examples.>>***********************/
/* Find all subdirectories on C: */
call SysFileTree 'c:\*.*', 'file', 'SD'
/* Find all Read-Only files */
call SysFileTree 'c:\*.*', 'file', 'S', '***+*'
/* Clear Archive and Read-Only bits of files which have them set */
call SysFileTree 'c:\*.*', 'file', 'S', '+**+*', '-**-*'
/****<< Sample Code and Output Example.>>********/
/* Code */
call SysFileTree 'c:\os2*.', 'file', 'B'
do i=1 to file.0
say file.i
end
/* Actual Output */
12:15:89 12:00a 4096 A-HRS C:\OS2LDR
12:15:89 12:00a 29477 A-HRS C:\OS2KRNL
5:24:89 4:59p 0 -D--- C:\OS2