File Manager Commands¶
The prompt character, which is displayed when the File Manager is ready to receive a command, is the greater than sign ‘>’. If this is not displayed, then no input is expected.
Commands are typed in with their arguments (usually filenames) separated by spaces. Wildcard characters may be specified. Commands may be in upper or lower case alphabetic characters.
DEMOS supports the use of wildcards ‘?’ and ‘*’. The ‘?’ character will allow DEMOS to search file names and disregard the characters replaced with ‘?’. For example, suppose there where five files with the names FILE1.TXT - FILE5.TXT. The following DIR command would only list those files:
>DIR FILE?.TXT FILE1.TXT FILE2.TXT FILE3.TXT FILE4.TXT FILE5.TXT
>DIR A?FILE.COM AAFILE.COM ACFILE.COM A4FILE.COM
The ‘*’ wildcard replaces the entire extension or file name. The example below will list all files with the extension .HBA:
>DIR *.HBA PROG1.HBA PROG2.HBA START.HBA
>DIR MYFILE.* MYFILE.TXT MYFILE.COM MYFILE.HBA
To list all files held in the HUNTER the command ‘DIR’ is used.
A combination of wildcards can also be used:
>DIR ??FILE.* MYFILE.TXT MYFILE.CCM MYFILE.HBA AAFILE.CGM ACFILE.COM A4FILE.COM MRFILE.HBA
Wildcards may be used with other File Manager commands apart from DIR, for instance, as follows with the ERA command:
this will erase any file starting with ‘BIG’ and any extension for example, BIGER.FIL, BIG.HBA or BIGGLES.COM would all be deleted.
Note that, as a precaution. Hunter will query the erasure of each file in turn, requiring operator confirmation at each stage.