The text of a manual · part 13 of 16
PDT 3200 Technical Reference Guide: Chapter 5 ROM-DOS Commands, pages 123 to 132
Pages 123 to 132 of 158, from PDT 3200 Technical Reference Guide
The original document is the PDF (941 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Symbol PDT-3200
Page 123
Chapter 5: ROM DOS Commands
Command Type Purpose
NUMLOCK CONFIG.SYS
The NUMLOCK command is used to set the Num Lock key on the keyboard to on or off when your computer starts.
Syntax NUMLOCK=[on|off]
Remarks Selecting ON designates that the Num Lock key is set to on when DOS boots. Selecting OFF designates that the Num Lock will be off when DOS boots. In either case, you will still have the ability to manually turn the Num Lock key on and off after boot up with the NUMLOCK command.
Examples NUMLOCK=on
The Num Lock key will be set to on when the system boots.
5-71
Page 124
PDT 3200 Technical Reference Guide
Command Type Purpose
PATH Internal
Sets the search path for command Þles that are not in the current directory.
Syntax PATH [d:][path][;[d:][path]...]
Remarks Without a speciÞed search path, ROM-DOS will look for an external command Þle (i.e., one with an extension of BAT, COM, or EXE) only in the current directory. The PATH command tells ROM-DOS which other directories to search after searching the current directory. Typing only the word PATH by itself displays the current path. If you want to cancel the command paths you set previously, type: PATH ; or PATH =;
Examples If your applications programs are loaded on a Þxed disk, the PATH command enables you to start any of them from any drive or directory. Suppose you want to be able to access utilities, a word processor, and a spreadsheet in subdirectories C:\UTIL, C:\WP, and C:\123. You would set the path command as follows: PATH C:\UTIL;C:\WP;C:\123
5-72
Page 125
Chapter 5: ROM DOS Commands
Command Type Purpose
PAUSE Internal Batch Subcommand
Suspends the execution of a batch Þle. Resumes operation when any key is depressed.
Syntax PAUSE [message]
Remarks A batch job may require that you perform some action such as changing disks, or choose to continue or terminate the operation. When the command processor encounters PAUSE it suspends execution, and displays the message: Strike a key when ready... After you perform the appropriate action, or make a decision, striking any key other than the combinations <Ctrl><C> or <Ctrl><Break> resumes the batch job. If you press <Ctrl><C> or <Ctrl><Break> at this point, ROM-DOS asks: Terminate batch job (Y/N)?
Responding ÒYÓ ends the batch job. Strategic placement of the PAUSE command, working with this query, allows you to divide the batch Þle into sections so you can end it at some intermediate point. The message option allows you to display a reminder on the screen during the pause. Your message will precede the Strike a key message. Note, however, that your message will appear only if ECHO is off.
Examples PAUSE Place blank disk in drive A:
The above command will alert the user of the need for a disk and suspend operation until a key has been hit.
5-73
Page 126
PDT 3200 Technical Reference Guide
Command Type Purpose
PRINT External
The PRINT utility prints a single Þle or a list of Þles.
Syntax PRINT [/d:] [filename] [/options]
Remarks PRINT allows you to enter between 1 and 32 Þles for spooling to the printer. The Þles are output to the device in a spooled manner (while the user performs other operations). If PRINT is entered without any parameters, then it displays all the Þles that are in the queue. The Þrst time PRINT is used the operator is prompted for the device to perform the operation. The following message is used to prompt the operator for the device. Name of list device [PRN]:
The legal devices for printing are LPT1, LPT2, LPT3, LPT4, COM1, COM2, COM3, COM4, AUX, or PRN.
Options The /B option allows the user to set the buffer size. The default buffer size is 512 bytes. A larger buffer size causes print to operate faster. The maximum buffer size is 32k bytes and the minimum size 256 bytes. This option is only allowed the Þrst time PRINT is run. The /C option cancels only the Þle names listed after the /C command. The /F option allows the user to set the maximum number of Þles to be queued up at one time. The default number of Þles is 10. The minimum is 2 and the maximum is 32. Support for more Þles is often useful when using wild cards in Þle names.
5-74
Page 127
Chapter 5: ROM DOS Commands
This option is only allowed the Þrst time PRINT is run (or until the next system reboot). The /P option causes all Þles listed after this option to be submitted for printing. This is the default for Þlenames encountered on the PRINT command line. The /T option cancels all the Þles from the print queue (list). Think of this as a terminator. The /H option will display the help screen.
Examples PRINT puts three Þles into the print queue. The Þrst Þle will start being printed after the command ends. PRINT FILE1.TXT FILE2.TXT FILE3.TXT
The Þle FILE2.TXT will be removed from the print queue. All other Þles in the queue will print normally. PRINT /C FILE2.TXT
All Þles in the print queue are canceled. Printing may continue for a short time because of the buffer in your printer. PRINT /T
5-75
Page 128
PDT 3200 Technical Reference Guide
Command Type Purpose
PROMPT Internal
Changes the ROM-DOS command prompt.
Syntax PROMPT [text] [$character] [$character...]
Remarks The prompt which ROM-DOS normally displays is the letter of the current drive followed by a right arrow (>) (the Ògreater-thanÓ symbol). By use of the PROMPT command, this prompt can be changed to include any combination of a message, the current directory, the date, the time, and some other features. The following table shows the codes that can be used with PROMPT. Code $T $D $P $V $N $G $L $B $Q $H
$E $_ $$
Corresponding Prompt Time Date Current Path ROM-DOS version number Current drive The > character The < character The ≠ character The = sign A backspace (which erases the previous character) ASCII code for Escape (X'1B') Start a new line The $ character
Examples To show this prompt: Current directory is drive:\path; Ready for command> you would type in:
5-76
Page 129
Chapter 5: ROM DOS Commands
PROMPT Current directory is $P;$_Ready for command$G
To show on separate lines the date, time, and current directory followed by the greater-than character and a space, type: PROMPT $D$_$T$_$P$G<space> here <space> refers to pressing the spacebar once. The resulting prompt will look like: Mon 6-26-1989 10:17:45.99 A:\> _
The last character on the last line indicates the position of the cursor.
5-77
Page 130
PDT 3200 Technical Reference Guide
Command Type Purpose
REM (REMark) Internal
The REM command has two purposes: to allow comments in a batch or CONFIG.SYS Þle, and to temporarily disable a command without physically deleting the command from the Þle. See also the ; command.
Syntax REM [message]
Remarks The REM command provides information for the user but has no effect on the execution of the batch Þle. The comment may be made up of any set of characters. A blank line can also be created by omitting the message portion of the line. REM can also be used to temporarily disable a command in a batch Þle or CONFIG.SYS, without having to delete the line from the Þle. For CONFIG.SYS Þles, the semicolon (;) can also be used in place of the REM command.
Examples REM This batch file created by REM T.J. Sherrill
These lines could be added at any point in a batch Þle as user information only. DEVICE=HIMEM.SYS DOS=HIGH REM DEVICE=TESTDEV.SYS /P
The DEVICE=TESTDEV.SYS statement has been temporarily removed from these CONFIG.SYS instructions. This statement will not be processed again until REM is removed.
5-78
Page 131
Chapter 5: ROM DOS Commands
Command Type Purpose
REN (REName) Internal
Changes the name of a Þle.
Syntax REN [d:][path]filename1 filename2
Remarks REN renames Þles within a directory; it will not move a Þle to a different drive or directory as part of the command. The wildcard characters * and ? can be used to rename more than one Þle at a time. ROM-DOS will not allow you to give a Þle a name that matches the name of an existing Þle in the same directory.
Examples To rename the Þle NOTES.DOC in drive B to REPORT.DOC, type: REN B:NOTES.DOC REPORT.DOC
To assign the extension TXT to all Þles with the current extension DOC, type: REN *.DOC *.TXT
5-79
Page 132
PDT 3200 Technical Reference Guide
Command Type Purpose
RMDIR (ReMove DIRectory) Internal
Removes (deletes) a speciÞed subdirectory.
Syntax RMDIR [d:][path]subdir or RD [d:][path]subdir
Where subdir is the name of the subdirectory being deleted. Note that RD may be used instead of the full RMDIR.
Remarks If no drive or path is speciÞed, RMDIR will look for the speciÞed subdirectory one level below the current directory. If a drive or path is speciÞed, everything speciÞed must exist or ROM-DOS will display an error message. RMDIR will not remove a subdirectory unless it is empty. An error message will be displayed if you attempt to remove a subdirectory that still has Þles or other subdirectories within it.
Examples RD TOOLS
Removes the TOOLS subdirectory from the current directory (assuming TOOLS is an empty directory).
5-80