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 10 of 16

PDT 3200 Technical Reference Guide: Chapter 5 ROM-DOS Commands, pages 93 to 102

Pages 93 to 102 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 93

Chapter 5: ROM DOS Commands

Command Type Purpose

DIR (DIRectory) Internal

Displays a list of the Þles that are in a directory.

Syntax DIR [d:][path][filename][/option]

Remarks The DIR command can be used to list all the Þles in a directory, or to show the directory entries of speciÞc Þles. The standard directory display format includes columns for Þlenames, Þlename extensions, Þle sizes, and the dates and times the Þles were created.

Options /A attributes The /A option causes the DIR command to display only the Þles that match the speciÞed Þlespec and have the given attribute. The table below shows the legal attribute descriptions. Letter

Description

A

Archive

D

Directories

H

Hidden Files

R

Read Only Files

S

System Files

X

Show Attributes

The dash (-) symbol can be used to negate listed attributes. For example, to select all Þles that do not have the archive bit set, use the /A -A option.

5-41

Page 94

PDT 3200 Technical Reference Guide

/B The /B, or bare, option causes the display to be displayed without volume label, date, time, or size information. /L The /L option causes the Þlenames to be displayed in lowercase. /P The /P option selects page mode, which makes ROM-DOS pause the display each time the screen is full. Press any key to go on to the next page of entries. /O The /O option causes the Þlenames to be displayed in sorted order. The sort order can contain one or more of the following letters: Letter

Description

D

By date and time, newest Þrst

E

Alphabetic order by extension

G

Directories grouped before Þles

N

Alphabetic order by name

S

Size, smallest Þrst

The dash (-) symbol can precede the sort option to reverse the sort order. For example, to sort all Þles in the directory in reverse alphabetic order, use the / O-N option. /S The /S option causes the display to include Þles in subdirectories also. /W Displays list in a wide format without date, time, or size. The DIRCMD environment variable can be used to set the default preferences for the DIR command. The SET command will assign the values to an environment 5-42

Page 95

Chapter 5: ROM DOS Commands variable. Refer to the SET command section for proper usage. For example, if you wanted to always have the /P option set for DIR, the statement SET DIRCMD=/P could be used. The default settings in DIRCMD can be overridden by using the minus sign (-) preceding the option. If you wanted to cancel the paging for a single use of the DIR command, you would enter DIR /-P.

Examples To see the directory entries of all Þles in the current drive and directory, type: DIR

To see all Þles in the subdirectory MEMOS on drive B, type: DIR B:\MEMOS

Display all Þles sorted by Þle name order. DIR /ON

Display all hidden Þles. DIR /AH

Display all Þles with a .DOC extension without Þle sizes, or volume labels. DIR *.DOC /B

5-43

Page 96

PDT 3200 Technical Reference Guide

Command Type Purpose

DOS CONFIG.SYS

ROM-DOS can be loaded in special memory, called the high-memory area, or HMA, freeing more of the conventional (lower 640K) DOS memory for use by applications.

Syntax DOS=HIGH

Remarks The DOS=HIGH command frees up more of the standard DOS memory for use by applications. This command will only work on 286, 386, and 486 CPUs with extended memory and Datalight's HIMEM.SYS high-memory manager, or equivalent, installed. It will not work on standard XT-class PCs. Setting DOS=HIGH is ignored when ROM-DOS is in ROM. The DOS=HIGH command will also work on Chips and Technology's PC/Chip, if it has extended memory and Chips and Technology's HIDOS.SYS device driver, or another memory driver, is loaded. See the HIMEM.SYS device driver description in this manual. See also 386MAX by Qualitas for more information.

Example The following example loads the high-memory-area device driver and then loads ROM-DOS into the HMA for increased conventional memory. The high memory area device driver must be loaded Þrst, before DOS=HIGH. DEVICE=HIMEM.SYS DOS=HIGH

5-44

Page 97

Chapter 5: ROM DOS Commands

Command Type

ECHO

Internal Batch Subcommand

Purpose Controls whether ROM-DOS commands and other messages are displayed during batch Þle execution. ECHO also allows you to create your own messages for display.

Syntax ECHO [ON≠OFF] ECHO message

Remarks The ON option is the default ECHO setting. It causes commands in a batch Þle to be displayed as they are executed by ROM-DOS. Typing ECHO OFF turns off such display, after which the ON option will switch it back on again. The ECHO command alone, typed without the ON or OFF option, displays the current ECHO setting. The message option is a string of characters, such as a warning or a reminder, that you want ROM-DOS to display. Although your message will be displayed whether ECHO is on or off, the message display is useful only when ECHO is off. To create a message, type ECHO followed by your message. If your message is more than one line long, the ECHO command begins each line of the message. The @ symbol can be used to suppress the echoing of a single command when ECHO is off. Place the @ symbol Þrst on the command line.

Examples A batch Þle message of more than one line could be the following: ECHO This batch file moves files

5-45

Page 98

PDT 3200 Technical Reference Guide

ECHO to another directory.

To set ECHO to off , enter the following command: ECHO OFF

5-46

Page 99

Chapter 5: ROM DOS Commands

Command Type Purpose

ERASE Internal

Deletes a speciÞed Þle or set of Þles.

Syntax ERASE [d:][path]filename [/P]

Remarks The DEL command and the ERASE command are functionally identical. When no drive is speciÞed, the default drive is assumed. When no path is speciÞed, the default path is assumed. Global characters (? and *) can be used in the Þlespec. This should be done with caution as it is possible to delete multiple Þles unintentionally. When the Þlespec *.* is used to delete all Þles in the speciÞed subdirectory, a veriÞcation message will be displayed: Are you sure (Y/N) ?

Type Y only if you want all Þles in the speciÞed subdirectory to be erased (deleted).

Caution There is not any ROM-DOS command to ÒundeleteÓ a Þle. Although utilities exist which can attempt an undelete, certain factors can cause the deleted Þle to be partially or totally lost. The ERASE command should be treated as a permanent delete. ERASE deletes Þles within a subdirectory, not the subdirectory itself. For subdirectory removal, see the RMDIR command.

Options /P

5-47

Page 100

PDT 3200 Technical Reference Guide

The /P option causes ERASE to pause and prompt the user before each Þle is deleted. This option is most useful when deleting Þles with wildcards. A sample prompt is shown below: Filename, Erase (Y/N) ?

Examples Erases the Þle MYLETTER.DOC from the current default subdirectory. ERASE MYLETTER.DOC

Erases all Þles in the current subdirectory with a .DOC Þle extension. ERASE *.DOC

This example erases all Þles on the A: drive with a .DOC extension. Before each Þle is erased the user is prompted to determine if that Þle should be erased. ERASE A:*.DOC /P

5-48

Page 101

Chapter 5: ROM DOS Commands

Command Type Purpose

EXIT Internal

Exits a secondary ÒnestedÓ ROM-DOS operation, and returns control of the system to the primary program.

Syntax EXIT

Remarks The EXIT command has no effect if a secondary COMMAND.COM command processor has not been loaded since the primary COMMAND.COM is always loaded in a ÒpermanentÓ mode. A secondary COMMAND.COM will be effected if it is loaded without the /P permanent option.

5-49

Page 102

PDT 3200 Technical Reference Guide

Command Type Purpose

FCBS CONFIG.SYS

The FCBS command allows you to specify the number of Þle control blocks (FCBs) open at one time.

Syntax FCBS = number [,minimum number]

Remarks Number speciÞes the maximum number of FCBs open at any given time. The default for this value is 4. The value for number must be in the range from 1 to 255. The minimum number speciÞes the minimum number of FCBs to be open at all times. The minimum number argument has the same default and range value as the number argument.

Example Set the maximum number of FCBs to 8 and leave at least 4 open at all times. FCBS = 8,4

5-50