◄Example► ◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── 'This example uses the FILES statement to print the names of the files 'residing on a specified disk. 'Note: Execution halts if you try to run this example without a disk in 'drive B or if the specified files cannot be found. FILES 'Shows all files on the current directory. FILES "*.BAS" 'Shows all files with the extension .BAS. FILES "B:*.*" 'Shows all files on drive B. FILES "B:" 'Equivalent to "B:*.*". FILES "TEST?.BAS" 'Shows all five-letter files whose names 'start with "TEST" and end with the .BAS 'extension. FILES "SALES\" 'If SALES is a directory, this statement 'displays all files in SALES.