Files Command

Purpose

Prints the directories in the current path name.

Syntax

Files path$ [To file$]

path$:sexp; current path name

file$:sexp; optional file name

Description

Files path$ returns the contents of the directories in pathname specified in path$. If path$ ends with a ":" or "\", GFA-BASIC automatically appends "*.*". The default destination for the output of the directory is the screen. Wildcards are allowed.

The specification of To file$ is optional. It can be used to divert the directory output to a file or a peripheral device.

In contrast to Dir To each file in Files To is first listed in its MSDOS name (8.3), followed by file size (character position 14 to 24), date and time (position 25 to 44), and ends with the Windows name (position 45).

Example

OpenW # 1

FontName = "terminal"

PrintScroll = 1

Files

See Also

Dir

{Created by Sjouke Hamstra; Last updated: 05/10/2014 by James Gaite}