Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 8 of 16

PDT 3200 Technical Reference Guide: Chapter 5 ROM-DOS Commands, pages 73 to 82

Pages 73 to 82 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 73

Chapter 5: ROM DOS Commands

CD D:\TEST\NEW

This command will move you into the subdirectory called NEW, located on the D: drive, under the parent directory TEST. CHDIR ..

This command will move you back to the parent directory of the current subdirectory. If you were in the directory D:\TEST\NEW (from the previous example), this CHDIR command would move you from NEW back into the TEST directory. CD ..\WORDPROC

This command will move you back to the parent directory and then into a subdirectory called WORDPROC. If we started in the TEST directory, we would move back to the ROOT directory and then into the WORDPROC subdirectory. CD \

This command will move you back to the root directory, from any starting point in the directory tree.

5-21

Page 74

PDT 3200 Technical Reference Guide

Command Type Purpose

CHKDSK (CHecK DiSK) External

The CHKDSK command checks the disk directories and File Allocation Table (FAT) and displays a disk and memory report.

Syntax CHKDSK [d:][path][filespec][/C] [/F] [/V]

Remarks CHKDSK examines a disk and determines if the disk has any errors in the File Allocation Table (FAT) and will optionally Þx errors.

Options The /F option causes CHKDSK to Þx errors on the disk if any were found. The errors that can be found are directory or FAT errors. If the /F is not speciÞed then CHKDSK acts as if it will Þx the disk, but the corrections will not be written out to the disk. If errors are detected, you will be prompted with a message similar to the following: 15 lost allocation units found in 5 chains. Convert lost chains to Þles? If you answer Y for Yes, each lost chain will be written to a Þle in the root directory of the current default drive. Each Þle will have the name FILEnnnn.CHK. nnnn will be a sequential number. The Þrst chain will be in FILE000.CHK. These Þles can be veriÞed to see if they contain valuable information, and then deleted if desired.

5-22

Page 75

Chapter 5: ROM DOS Commands

Answering N for No to the above prompt, CHKDSK will still make the corrections however the lost chains will not be saved to the disk. The /C option allows CHKDSK to correct errors without user conÞrmation. This option must be used along with the /F option for corrections to be made. The /V option causes CHKDSK to display each path and Þle as it is processed. If a Þle speciÞcation is speciÞed, then CHKDSK displays all Þles matching the speciÞcation that have non-contiguous data areas on the disk. Files that are stored in non-contiguous areas, especially .EXE Þles, have slower disk access times. If CHKDSK reports a large number of Þles with this problem, a utility program that optimizes the Þles and free space on your disk should be used. After checking the disk, CHKDSK displays any error messages followed by a report on the state of the disk that was checked. An example of the report is shown below. Volume ROM-DOS created June 1,1990 1:00a Volume Serial Number is 190E-4AA2 362496 bytes total disk space 0 bytes in 1 hidden files 6144 bytes in 2 user files 356352 bytes available on disk 655360 bytes total memory 595360 bytes free CHKDSK does not wait for a disk to be inserted before the checking is initiated nor does it repair any errors.

Examples CHKDSK will check the integrity of drive A. The report will be printed to the console. CHKDSK a:

CHKDSK will check the integrity of RAM disk D. The report will be saved in a Þle called DRIVE_D.RPT. CHKDSK d: >drive_d.rpt

5-23

Page 76

PDT 3200 Technical Reference Guide

Command Type Purpose

CLS (CLear Screen) Internal

Clears the viewport to display a blank screen.

Syntax CLS

Remarks CLS clears the screen except for the ROM-DOS prompt and the cursor in the upper left-hand corner. There are no additional options for CLS.

5-24

Page 77

Chapter 5: ROM DOS Commands

Command Type Purpose

COMMAND (Command Processor) External

Start a new Command Processor.

Syntax COMMAND[device][/E:number][/K:filename][/P][/C string][/MSG]

Remarks This command starts a new copy of the ROM-DOS Command Processor. The Command Processor is the program that has all the internal DOS commands in it. Starting a new Command Processor will also produce a new environment. The size of the environment is 128 bytes by default, but can be changed using the /E switch. Command and its arguments can also be used in a SHELL= statement in your CONFIG.SYS Þle. See the full description of SHELL for more details.

Options The device option speciÞes that COMMAND.COM should use a different device, such as AUX, for input and output. The /E:number switch sets the environment size. Number represents the size of the environment in bytes. Number must be in the range from 160 to 32768. All other values will be ignored and the default value of 256 will be used. ROM-DOS will round the value entered up to the nearest multiple of 16. The /K:filename option tells the command processor to run the speciÞed Þlename and then display the ROM-DOS command prompt. It is not recommended that this option be used in a CONFIG.SYS SHELL= statement. The /P switch causes COMMAND not to exit, in other words, remain permanent. The /P switch should only be used when command is used in a CONFIG.SYS SHELL statement. The /c string switch causes COMMAND to execute the command in string and then terminate. The string command can be any internal or external command. The /MSG option indicates that all error messages should be stored in memory. This option is recommended only for diskette based systems. ROM-DOS keeps 5-25

Page 78

PDT 3200 Technical Reference Guide many of its error messages in the resident part of COMMAND.COM rather than using valuable memory to store them. If an error message is needed and you have loaded ROM-DOS from a diskette, the message will only be available if the boot disk is still in the drive. By using the /MSG option, the messages will be available in memory at all times. The /P option must be used along with the /MSG option.

Examples The following command will cause a new copy of COMMAND to be executed. It will perform a DIR command on the C drive and then exit back to the previous Command Processor. COMMAND /C DIR C:

The following example shows loading of a permanent copy of command with an environment size of 256 bytes. SHELL=C:\COMMAND.COM /P /E:256

5-26

Page 79

Chapter 5: ROM DOS Commands

Command Type Purpose

COPY Internal

Copies a Þle or set of Þles to a speciÞed destination which could be on another disk, or on another subdirectory on the current disk, or on a completely different drive. COPY may also be used to alter the Þlename within the current directory. In addition, this command can be used to direct communication between Þles and devices (e.g., Þle contents to a printer, keypad input to a Þle).

Syntax This command has several possible formats. The essential structure of each command is: COPY source target option

The source is the Òcopy fromÓ Þlespec or device, and the target is the Òcopy toÓ Þlespec or device. Following are various conÞgurations of the COPY command format. COPY [d:][path]filename[/option] [d:][path]filename [/option]

Where the Þrst Þlespec indicates the source Þle(s) to be copied and the second Þlespec indicates the target area on which to copy. COPY [d:][path]filename[/option] + [d:][path]filename [/option] + ... [d:][path]filename[/option]

As shown, several source Þlespecs may be listed to be copied into the target Þlespec which is listed last. The source Þles will be concatenated one after the other into the target Þle. COPY [d:][path]filename[/option] device

The target device is a console or printer (PRN). COPY device [d:][path]filename[/option]

The device is the source such as a keyboard or console, the output of which will be directed to the target Þlespec.

5-27

Page 80

PDT 3200 Technical Reference Guide

Options The /A and /B options stand for ASCII and binary, respectively. They act as switches that allow each of these Þle types to be copied. When one of them is used, it applies the preceding Þlename, and remains in effect for any Þlenames following in the command line until superseded by another /A or /B. Most of the time the /A and /B options are not necessary. They are only needed when you are combining ASCII and binary Þles. /A Indicates that the Þle is to be treated as an ASCII Þle (text Þle). When used with the source Þle, everything will be copied up to, but not including, the Þrst <CTRL><Z> end-of-Þle marker. When /A is used on the target Þle, a <Ctrl><Z> will be added as the last character in the Þle. /B Indicates that the Þle is to be treated as a binary Þle. When /B is used with the source Þle, the entire Þle is copied regardless of any <Ctrl><Z> characters. When /B is used with the target Þlespec, no <Ctrl><Z> end-of-Þle mark is added. /V This is the Verify option. It tells COPY to compare what is written to the target Þle with the contents of the source Þle. If discrepancies are discovered, an error message is displayed. This option slows the execution of the COPY command. Since errors in copying are quite rare, this option is recommended as a safeguard only when copying critical data. /Y This option indicates that you want to copy the current Þle(s) over the existing Þle(s) of the same name(s) without conÞrmation. Using this option overrides the setting made by the COPYCMD environment variable.

5-28

Page 81

Chapter 5: ROM DOS Commands

/-Y This option indicates that you want to conÞrm the copy of one Þle over the existing Þle of the same name. Using this option will override the setting made by the COPYCMD environment variable. The COPYCMD environment variable can be set using the SET command. This allows you to set conÞrmation on or off for the COPY command. If you always want to be prompted for conÞrmation when a Þle will copy over an existing Þle, set COPYCMD= /-Y. To automatically overwrite without conÞrmation during a copy instruction, set COPYCMD= /Y. Refer to the SET command for proper usage.

Remarks When no Þlename is speciÞed for the target, the new copy will be given the same name as the source Þle name. When no drive or path is speciÞed for the source, the current drive and directory is assumed. When no drive or path is speciÞed for the target, the current drive and directory are assumed. If a drivename only is speciÞed without a path, the default directory for that drive is assumed. Both source and target Þlespecs may include wildcard characters (* and ?) to specify a set of several Þles.

Examples COPY LETTER.TXT A:

This command will copy the Þle LETTER.TXT (in your current default drive and path) to the default directory on the disk in drive A. COPY *.DOC A:

Copies all Þles in the default directory with an extension of .DOC to the default directory of drive A. COPY DATAORIG.DOC DATABACK.DOC/V

This example creates a backup copy, DATABACK.DOC, from the Þle DATAORIG.DOC, then veriÞes that the Þle was correctly copied. The new Þle will be located in the current default directory. 5-29

Page 82

PDT 3200 Technical Reference Guide

COPY JAN.DAT + FEB.DAT + MAR.DAT QTR1.DAT

Copies the Þles JAN.DAT, FEB.DAT, and MAR.DAT in sequence into the single Þle, QTR1.DAT. COPY CON NEWFILE.TXT

Sets up your console (keypad) to input directly to NEWFILE.TXT. <Ctrl><Z> followed by <Enter> closes the Þle and returns to normal command line operation.

5-30