< Previous | Contents | Next >
6 : Permanent Commands | |||
This section of the book describes all the built-in commands in DOS Plus and all the standard utilities provided on DISC 1 supplied with the Master 512.
The commands are listed alphabetically however for ease of reference the following table lists where each command description can be found:
<Note: Page numbers omitted in favour of hyperlinks>
8087
ADDMEM
BREAK
CHDIR
CLS
COMSIZE
COPY
DATE
DEL
DELQ
DIR
ERASE
ERAQ
EXIT
MKDIR
PATH
PROMPT
RENAME
RMDIR
SET
SLICE
TIME
TYPE
USER
VER
VERIFY
VOL
Description: | Select 8087, or check existence and usage. | |
Syntax: |
8087 |
|
Abbreviation: | None | |
Default: | 8087 = OFF | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | 8087 | |
MS-DOS Equiv.: | Does not exist | |
Example: | A>8087=ON (The 8087 does not exist and can't be turned on) |
|
Error messages: | (DR definition only – see notes) 8087 not installed 8087 in use |
|
Notes: | This command is only included for compatibility with other versions of DOS Plus. As there is no provision for a maths co-processor in the 80186, this command always returns the message:
or
|
Description: | Allocate the maximum memory that the foreground program may use. | |
Syntax: | ADDMEM {n} | |
Abbreviation: | None | |
Default: | ADDMEM=0 | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | ADDMEM | |
MS-DOS Equiv.: | None | |
Examples: | A>ADDMEM=0 Allocates all available memory to the foreground EXE program. A>ADDMEM=333 Allocates 333k to the foreground EXE program. A>ADDMEM Returns the present memory allocation |
|
Notes: | This command is used to allocate extra space for EXE programs by reserving memory. The memory so reserved may be used only by a foreground EXE program, and is unavailable to others. |
Description: | The equivalent of CTRL-BREAK on a PC. | |
Syntax: | BREAK {ON | OFF} | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | BREAK | |
MS-DOS Equiv.: | None | |
Example: | A>BREAK BREAK is off A> |
|
Notes: | This command is only included for compatibility. It has no effect, but is recognised to prevent batch files converted from other machines from crashing. IMPORTANT: Note that what is being simulated in this command is CTRL-BREAK on a PC, not CTRL-BREAK on a BBC micro. The key combination on a PC causes termination of the current program, like ESCAPE in the BBC micro. The same effect can be obtained on a PC by CTRL-C. The equivalent of the BBC's CTRL-BREAK is achieved on a PC by simultaneously pressing CTRL-ALT-DEL. Just to confuse you even further, CTRL-ALT-DEL doesn't function on the Master 512 – to reset the system, press CTRL-BREAK. |
Description: | 1. Change directory 2. Assign floating drives 3. Display current path |
|
Syntax: | CHDIR {<d:>} {<path>} | |
Abbreviation: | CD | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | CHDIR | |
MS-DOS Equiv.: | CHDIR | |
Examples: | C>CD C:\dir1 Change current directory to \dir1. A>CD dir1\dir2 Change current directory to dir1\dir2. A>CD .. Change current directory to parent of current directory. A>CD ..\.. Change current directory to parent of parent directory. C>CD A:\dir1 Change the current directory of another drive. C>CD N:=A:\dir1 Assign floating drive N: to a:\dir1. A>C:CD Display current directory (in this case \dir1). C>CD A: Display current directory of another drive. |
|
Notes: | If the floating drives N:, O: and P: have not been set by CHDIR, they default to the drive from which DOS Plus was booted, A: if booted from floppies, or C: if booted from hard disc. Floating drive assignment allows an application to run as if the drives assigned were actually present in the system. This extension of the CHDIR command replaces the MS-DOS transient command SUBST. |
Description: | Clear the screen and move cursor to top-left. | |
Syntax: | CLS | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | CLS | |
MS-DOS Equiv.: | CLS | |
Example: | A>CLS Clears the screen and moves the cursor to the top-left corner of the screen and displays the current DOS Plus prompt. |
|
Notes: | On some PC systems the command also resets the default screen mode and colours. |
Description: | Allocate or display memory for .COM files. | |
Syntax: | COMSIZE {n} | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | COMSIZE | |
MS-DOS Equiv.: | COMMAND | |
Examples: | A>COMSIZE Displays the current memory allocation. A>COMSIZE = 0 Allocate all available memory. A>COMSIZE = 200 Allocate 200k to COM files. |
|
Notes: | This command is used to allocate extra memory for .COM programs by reserving memory. The memory so allocated may be used only by .COM programs, and is unavailable to other programs. |
Description: | Copy and/or merge files. | ||||||||||||||||||||||
Syntax: | COPY {/A}{/B} {d:}<filespec> {/A}{/B}{/S} {+<filespec> {/A}{/B}} ... {<filespec>} {/A}{/B}{/V} The filespec may be substituted with a device. For example: AUX: CON: PRN: NUL: |
||||||||||||||||||||||
Options: |
|
||||||||||||||||||||||
Abbreviation: | None | ||||||||||||||||||||||
Versions: | 1.2, 1.2a, 2.1 | ||||||||||||||||||||||
DR Equivalent: | COPY | ||||||||||||||||||||||
MS-DOS Equiv.: | COPY | ||||||||||||||||||||||
Examples: | A>COPY TEXT.DOC B: Copy the file TEXT.DOC from the current directory on drive A to the current directory on drive B. A>COPY A:text.doc B:letter.doc Copy the file text.doc from drive A to drive B, naming the new file on drive B letter.doc. A>COPY B:text.doc Copy the file text.doc from drive B to the current directory on the current drive. A>COPY CON GO.BAT Copies keyboard input to the file GO.BAT until a CTRL-Z character is typed. A>COPY text.doc letter.doc Copies text.doc on drive A to a file called letter.doc, also on drive A. A>COPY txt1.doc+txt2.doc+txt3.doc b:letter.txt Copies the three files, txt1.doc, txt2.doc, txt3.doc in sequence from drive A into a single file called letter.txt on drive B. |
||||||||||||||||||||||
Notes: | IMPORTANT: COPY overwrites any existing file with the same name without informing the user, provided that the destination file attributes are set to read-write. If in doubt, check the destination disc to see if a file already exists with the same name, unless you are sure you intend to overwrite. Better yet, keep all important files set to read-only, unless they are specifically being updated. | ||||||||||||||||||||||
See also: | PIP and DISK. | ||||||||||||||||||||||
Caution: | Never include spaces in a destination file name. There is a bug in DOS Plus (1.2 and 1.2a) such that failure to observe this rule can result in a destination file length of zero, with no error reported. Worse still, if you supply no destination name, DOS Plus first assumes that the destination name is all spaces but then also uses the source name for the destination as normal, setting the file length of the new file to zero before writing to it. If this is the same name as the source, the file by then zero length, is copied to itself, resulting in a zero length file and no error. If you meant to type COPY *.EXE *.BAK but just typed COPY *.EXE you would lose all the EXE files in that directory on your disc – permanently! At this stage you do not have a destination file copy, and the source file is lost too! |
Description: | Read/write system date. | |
Syntax: | DATE {dd-mm-yy} Note that the dash delimiters (-) may be replaced by full stop (.) or back slash (/). |
|
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | DATE | |
MS-DOS Equiv.: | DATE | |
Examples: | A>DATE 1-1-88 A>DATE 01/01/1988 A>DATE 12.3.1987 |
|
Notes: | The BBC Master has a real-time battery backed clock (RTC). The DATE command refers to the DOS system clock which is not always the same value as the RTC. The date and time are only read from the RTC (if available) at initialisation. If the Master 512 is used without an AUTOEXEC.BAT file, initialisation is automatically requested during start-up (see page 14). Manual entry is required. Some third party alternative RTCs, such as Genie Watch (which supports the correct system calls) can also be used, or you could write your own RTC code as a Sideways ROM program on the BBC micro. |
|
See also: | TIME |
Description: | Delete file(s). | |
Syntax: | DEL <filespec> | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | DEL | |
MS-DOS Equiv.: | DEL | |
Examples: | A>DEL File.* Delete all files with the name 'file', on the current drive, but any extension is acceptable. A>DEL B:*.BAK Delete all files with the extension BAK, on drive B: but any filename is acceptable. A>DEL *.* Delete all files! This will cause the reponse: Are you sure (Y/N)? Only if you respond with Y will the operation take place. Any other key aborts the deletion. |
|
Notes: | Deleting a file only removes the name from the directory. By using the correct method (a disc sector editor, or an appropriate utility) it is possible to recover a deleted file. DEL does not delete files with access permission set to read-only. This command is functionally the same as ERASE. |
|
See also: | ERASE, DELQ, ERAQ. |
Description: | Delete files(s) with query. | |
Syntax: | DELQ <filespec> | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | DELQ | |
MS-DOS Equiv.: | DEL using /P switch | |
Example: | A>DELQ B:*.DOC Erase all files with the DOC extension in the current directory of drive B. As each filename is presented deletion is queried by:
Answer Y to delete the file, or N to omit it from the delete operation. |
|
Notes: | This command is functionally the same as ERAQ. | |
See also: | DEL, ERASE, ERAQ |
Description: | Display a directory's contents. | |||||||||||||
Syntax: | DIR {d:}{<filespec>}{/L}{/S}{/P}{/W} | |||||||||||||
Options: |
|
|||||||||||||
Abbreviation: | None | |||||||||||||
Versions: | 1.2, 1.2a, 2.1 | |||||||||||||
DR Equivalent: | DIR | |||||||||||||
MS-DOS Equiv.: | DIR | |||||||||||||
Examples: | A>DIR Display the contents of the current directory. A>DIR *.BAK /W Display all files with a .BAK extension in the current directory using the wide display format. A>DIR B:text.doc Display information about the file text.doc on drive B. |
|||||||||||||
Notes: | If a DIR command can't find a file which matches the optional file specification the message displayed is:
The command DIR *.* is the same as DIR without any parameters. |
Description: | Erase file(s). | |
Syntax: | ERASE <filespec> | |
Abbreviation: | ERA | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | ERASE | |
MS-DOS Equiv.: | ERASE | |
Example: | C>ERASE *.BAK Delete all files with the BAK extension in the current directory, any filename is acceptable. |
|
Notes: | Be careful with ERASE *.* when using a hard disc. Erasing everything from the root directory will result in the loss of COMMAND.COM, and the system will no longer be bootable from the hard disc. This command is functionally the same as DEL. |
|
See also: | DEL, DELQ, ERAQ. |
Description: | Erase file(s) with query. | |
Syntax: | ERAQ <filespec> | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | ERAQ | |
MS-DOS Equiv.: | ERASE using /P switch | |
Example: | A>ERAQ *.BAK Erase all files with the BAK extension in the current directory of drive A. As each filename is presented erasure is queried by:
Answer Y to delete the file, or N to omit it from the erase operation. |
|
Notes: | This command is functionally the same as DELQ. | |
See also: | ERASE, DEL, DELQ. |
Description: | Return to the calling program from DOS. | |
Syntax: | EXIT | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | EXIT | |
MS-DOS Equiv.: | EXIT | |
Example: | A>EXIT | |
Notes: | When an application allows the user access to the DOS command interpreter from within an application, type EXIT at the DOS prompt in order to return to the application. If your application allows DOS commands to be executed while still under application control, (ie you do not see the normal system prompt) the EXIT command is not required. |
Description: | Create a new directory. | |
Syntax: | MKDIR {d:}{path} | |
Abbreviation: | MD | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | MKDIR | |
MS-DOS Equiv.: | MKDIR | |
Examples: | A>MKDIR words Create a new directory called words, subordinate to the current directory. A>MKDIR words\letters Create a directory called letters, subordinate to the directory called words, which must be subordinate to the current directory. |
Description: | Change directory search path. | |
Syntax: | PATH {d:}<path>{;{d:}<path>} ... | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | PATH | |
MS-DOS Equiv.: | PATH | |
Example: | A>PATH C:\DOS;B:\UTILS Tells DOS Plus to look for commands in the DOS directory on drive C, or the UTILS directory on drive B, if they are not found in the current directory. |
|
Notes: | When a command is issued, DOS Plus first looks for the command in its table of resident commands. If no such command exists DOS assumes the command to be a transient and next searches the current directory, looking for a filename the same as the command name with an extension of .CMD, .COM, .EXE or.BAT. If the file is not found DOS next searches all the directories in order, as specified in the PATH command. If the file still cannot be found DOS finally searches the root directory. If at any stage a file is found it is executed. If no such file could be found DOS reports 'Bad command or filename'. By convention the transients are placed in a directory called \DOS and this is set in the PATH to be searched for unrecognised commands. |
Description: | Set the DOS prompt. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Syntax: | PROMPT {s} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Options: | The characters below can be preceded by a $ in the PROMPT command to produce a new systems prompt. They will appear in the order specified, and will cause the following to be included in the new prompt:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Abbreviation: | None | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Versions: | 1.2, 1.2a, 2.1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DR Equivalent: | PROMPT | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MS-DOS Equiv.: | PROMPT | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes: | The text string must not contain the following characters:
|
Description: | Rename a file. | |
Syntax: | RENAME <old filespec> <new filespec> | |
Abbreviation: | REN | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | RENAME | |
MS-DOS Equiv.: | RENAME | |
Example: | A>RENAME text.dta text.txt Renames the file 'text.dta' to 'text.txt', both within the current directory. Note that the syntax is reversed from the original CP/M command. |
|
Notes: | If the new name already exists, the file can't be overwritten and an error message is displayed. The command is terminated on error. The command is very similar to the BBC MOS *RENAME command. |
Description: | Remove directory. | |
Syntax: | RMDIR {d:}<path> | |
Abbreviation: | RD | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | RMDIR | |
MS-DOS Equiv.: | RMDIR | |
Example: | A>RD dir1\dir2 Deletes the directory 'dir2', which is subordinate to 'dir1'. A>RD B:\temp Deletes the directory 'temp' from drive B. |
|
Notes: | A directory can only be deleted if it contains no files or sub-directories (even if these are empty). If you try to remove a directory which is not empty the error message:
will result. No alteration is made to the disc. |
Description: | Set or display operating environment. | |
Syntax: | SET {<name>=<s>} | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | SET | |
MS-DOS Equiv.: | SET | |
Examples: | A>SET A>SET COMSPEC=B:\COMMAND.COM A>SET PROMPT=$p$g |
|
Notes: | The path shown is the current setting as defined in the PATH command. 'COMSPEC' refers to the name of the current command processor transient. The OS and VER entries identify the operating system, while PROMPT reflects the current prompt definition as set by that command or the default. |
Description: | Allocate time split between foreground and background programs. | |
Syntax: | SLICE {n} | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | SLICE | |
MS-DOS Equiv.: | None | |
Example: | A>SLICE 10 Allocate 10 time units to foreground for every unit allocated to background. A>SLICE Display current slice value: |
|
Error messages: | Invalid Slice Specification (1- 255) SLICE has been followed by a number which is not a number between 1 and 255. |
|
Notes: | System help suggests that time-slicing is on the basis of 16 units. This contrasts with the error message shown above, which suggests that slices may be defined in 255ths. In fact SLICE does accept values up to 255, but if a value greater than 127 is supplied in 2.1 a subsequent SLICE request (without parameters) shows a corrupted value. DOS plus allows certain tasks to be run in background mode. The system shares processor time between the main (foreground) task and any background tasks, based on the time-slice set by this command. The default setting is 16, which means that 16 time units are spent executing foreground tasks for every single unit spent on each background task. |
Description: | Display and/or set time. | |
Syntax: | TIME {hh:mm{:ss{.xx}}} | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | TIME | |
MS-DOS Equiv.: | TIME | |
Example: | A>TIME If no time is entered then the existing time is retained. |
|
Notes: | The time is set using the 24 hour dock. On a Master TIME is automatically initialised to the value given by the micro's real time clock. The seconds and hundredths are optional when manual amendment is requested, or when booting the system on a micro without an RTC. See also the notes on page 14, concerning the AUTOEXEC.BAT file |
|
See also: | DATE |
Description: | Display ASCII file(s). | |
Syntax: | TYPE <filespec> {/P} | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | TYPE | |
MS-DOS Equiv.: | TYPE | |
Examples: | A>TYPE text.doc Display the file text.doc on the screen. A>TYPE text.doc /P Display the file text.doc, pausing at each screenful (24 lines). |
|
Notes: | The keys CTRL-S and CTRL-Q pause and re-start the TYPE command during execution. CTRL-C abandons the command, and CTRL-P toggles the printer on and off. To print a file use CTRL-P after entering the TYPE command, but before pressing RETURN. At the end of the display, which still echos to the screen, press CTRL-P to disable printer output again. Unlike MS-DOS, DOS Plus will accept a wildcard argument when typing files, so if you issued TYPE FILE?.DOC and two files existed in the current directory, FILE1.DOC and FILE2.DOC, they would both be typed, in alphabetical filename order, each file's output being preceded by it's name in inverse video. |
Description: | Change or display user number. | |
Syntax: | USER {n} USER |
|
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | USER | |
MS-DOS Equiv.: | None | |
Examples: | A>USER Displays the current user number. A>USER 1 Changes the current user number. |
|
Notes: | This command is only provided for compatibility with CP/M produced discs. CP/M allows discs to be partitioned by user number, each of which cannot access files held under a different user number. DOS Plus defaults to user zero, like CP/M, but this may be changed to allow reading or updating of CP/M discs. On DOS formatted discs the command is non-functional. |
Description: | Display DOS Plus version number. | |
Syntax: | VER | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | VER | |
MS-DOS Equiv.: | VER | |
Example: | C>VER DOS Plus version 1.2 |
|
Notes: | This command is provided only for compatibility with applications which may interrogate the operating system for the purpose of auto-configuration. |
Description: | Set or display disc write verification status. | |
Syntax: | VERIFY {ON | OFF} | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | VERIFY | |
MS-DOS Equiv.: | VERIFY | |
Examples: | C>VERIFY ON C>VERIFY OFF |
|
Notes: | This command is non-functional. It is included for compatibility with MS-DOS, so that batch files written for MS-DOS applications do not return an error which would cause them to fail. |
Description: | Display the disc volume label. | |
Syntax: | VOL {d:} | |
Abbreviation: | None | |
Versions: | 1.2, 1.2a, 2.1 | |
DR Equivalent: | VOL | |
MS-DOS Equiv.: | VOL | |
Example: | VOL A: Displays disc volume label as set by the formatting or copying of a disc, or by the transient LABEL. (Version 2.1 only.) |
|
Notes: | Disc labels are beyond the control of the user in all versions of DOS Plus prior to 2.1. | |
See also: | LABEL |
< Previous | Contents | Next >