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 15 of 19

Falcon DOS Portable Data Terminals Advanced User's Guide, pages 141 to 150

Pages 141 to 150 of 184

The original document is the PDF (7.1 MB). 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 PSC 335, PSC 340, PSC 345, Datalogic 335, Datalogic 340 and Datalogic 345

Page 141

Command Descriptions /O

The /O option causes the filenames 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 first

E

Alphabetic order by extension

G

Directories grouped before files

N

Alphabetic order by name

S

Size, smallest first

-

The dash (-) symbol can precede the sort option to reverse the sort order. For example, to sort all files in the directory in reverse alphabetic order, use the / O-N option. /S

The /S option causes the display to include files in subdirectories also. /W

Display 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 variable. Refer to the SET command section for proper usage. For example, 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. To cancel the paging for a single use of the DIR command, enter DIR /-P. Examples To see the directory entries of all files in the current drive and directory, type: DIR

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

Display all files sorted by file name order. DIR /ON

Advanced User’s Guide

B-13

Page 142

Display all hidden files. DIR /AH

Display all files with a .doc extension, without file sizes, or volume labels. DIR *.DOC /B

FCBS Type CONFIG.SYS Purpose The FCBS command allows the number of file control blocks (FCBs) open at one time to be specified. Syntax FCBS = number[,minimum number] Remarks Number specifies 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 specifies 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

FIND Type External Purpose FIND is a filter to display only lines that contain a specified string. The input to FIND may come from a file, or it may be piped in from another filter or a DOS command.

B-14

Falcon® DOS Portable Terminals

Page 143

Command Descriptions

Syntax FIND [/option] match-string [filespec] Options The /C option causes FIND to only display the count of lines found with the specified string. The /N option causes FIND to display the line number of the line found containing the string. The /V option causes FIND to display the lines that do not contain the string. The match-string argument specifies the word or group of characters to search for. The filespec argument specifies the file or group of files to search in. The complete drive and path can be specified. Wildcard characters can be used in the filename. Examples The following example shows each line in the file JUNK.C that contains the string “printf ”. FIND printf junk.c

The following example shows each line in a directory listing that contains a DIR. The command first executes a DOS DIR command with the output piped into the FIND command. The FIND command then displays each line that contains the string “DIR”. dir ¦ FIND DIR

The following example give a count of the lines in the file MANUAL.TXT that contain the string “ROM-DOS”. FIND /C ROM-DOS MANUAL.TXT .....MANUAL.TXT: 105

HELP Type Internal Purpose Provides on-line help of each ROM-DOS command.

Advanced User’s Guide

B-15

Page 144

Syntax HELP <command> Remarks HELP serves as a memory aid. For complete information about ROM-DOS commands, always consult this manual. HELP for each command can also be displayed by entering /? following the command name. The file COMMAND.HLP must be available to use this command. Examples To list the help of the DIR command, type: HELP DIR or DIR /?

All available batch file commands are also listed by HELP.

NEWFILE Type CONFIG.SYS Purpose The NEWFILE command allows continuation of CONFIG.SYS file processing from a new file. The file can be located on in another directory or even on a different drive. Syntax NEWFILE=filename Remarks The NEWFILE command is especially useful when the CONFIG.SYS file is located on an inaccessible drive or in ROM. Additional device drivers or instructions can be added easily to the new file and will be processed along with the main CONFIG.SYS file upon starting the system. When the NEWFILE= instruction is processed, control will be passed from the present file (the one containing the NEWFILE instruction) to the file specified in the command. Any commands placed after the NEWFILE instruction in the original file will not be processed. If for some reason the specified file name can not be located, CONFIG.SYS processing will be terminated (even if

B-16

Falcon® DOS Portable Terminals

Page 145

Command Descriptions instructions were to be placed after the NEWFILE command) and the remainder of the startup process will be completed. NEWFILE commands can be nested. The original CONFIG.SYS can call a second set of instructions via the NEWFILE command. The second file can in turn call a third file by using the NEWFILE command, and so on. Be sure that each filename in the successive steps has a unique name, otherwise, an infinite loop will be created as control is passed back to the same file repeatedly. Each filename given in a NEWFILE command line will have an environment variable of the same name. Example The following example will cause instructions in the file NEWCFG.SYS, located in the C:\BIN directory, to be executed as part of the CONFIG.SYS file. The contents of NEWCFG.SYS may include any of the commands listed in this section. NEWFILE=C:\BIN\NEWCFG.SYS

PRINT Type External Purpose The PRINT utility prints a single file or a list of files. Syntax PRINT [filespec] [/options] Remarks Enter between 1 and 32 files for spooling to the printer. The files 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 files that are in the queue. The first 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.

Advanced User’s Guide

B-17

Page 146

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 first time PRINT is run. The /C option cancels only the file names listed after the /C command. The /F option allows the user to set the maximum number of files to be queued up at one time. The default number of files is 10. The minimum is 2 and the maximum is 32. Support for more files is often useful when using wild cards in file names. This option is only allowed the first time PRINT is run (or until the next system reboot). The /P option causes all files listed after this option to be submitted for printing. This is the default for filenames encountered on the PRINT command line. The /T option cancels all the files from the print queue (list). Think of this as a terminator. The /H option will display the help screen. Examples PRINT puts three files into the print queue. The first file will start being printed after the command ends. PRINT FILE1.TXT FILE2.TXT FILE3.TXT

The file FILE2.TXT will be removed from the print queue. All other files in the queue will print normally. PRINT /C FILE2.TXT

All files in the print queue are canceled. Printing may continue for a short time because of the buffer in the printer. PRINT /T

SHARE Type External

B-18

Falcon® DOS Portable Terminals

Page 147

Command Descriptions

Purpose SHARE installs the capabilities for file-sharing and file-locking on the hard disk. Syntax SHARE [/options] Or from CONFIG.SYS: INSTALL=[drive:][path]SHARE.EXE [/options]

Remarks The SHARE utility is most commonly used in a network or multitasking environment where file sharing is necessary. When SHARE is loaded, DOS will utilize the SHARE utility to validate read and write requests from application programs and users. The /L:# option specifies the maximum number of files that can be locked at one time. The default number of files is 20. The /U option unloads the share utility and frees the memory. SHARE will not unload if other TSRs have been loaded on top of it. The other TSRs must be unloaded first before trying to unload SHARE. Examples The following example loads the SHARE program from the command line: SHARE

The next example installs SHARE from the CONFIG.SYS file and changes the maximum number of locked files to 30: INSTALL=C:\UTILS\SHARE.EXE /l:30

The final example unloads SHARE and frees the used memory. SHARE /U

SWITCHES Type CONFIG.SYS Purpose The SWITCHES command allows special CONFIG.SYS file options.

Advanced User’s Guide

B-19

Page 148

Syntax SWITCHES=[/k][/n][/f] Remarks The /k argument makes an enhanced keyboard behave like a conventionalstyle keyboard. The /n argument prevents the use of the <F5> and <F8> function keys to bypass the startup commands. The /f argument instructs ROM-DOS to skip the delay after displaying the Starting ROM-DOS... message at boot time. The delay allows the user time to use the F5 and F8 options to alter the processing of the startup files. Examples The following example prevents the user from using the <F5> and <F8> keys at boot time. switches = /n

TREE Type External Purpose The TREE command displays each subdirectory and optionally the files within them for a specified drive. Syntax TREE [drive:] [/F] Remarks The TREE command displays the full path of each subdirectory on a specified disk. The d: specifies the drive that TREE will display the subdirectories from. This argument must be specified. Options The /F switch causes TREE to display the files in each subdirectory. Examples This command will display all subdirectories on drive C. C:\DATA> TREE C:

This command will display all subdirectories on drive A along with the files within each sub directory. C:\DATA> TREE A: /F

B-20

Falcon® DOS Portable Terminals

Page 149

Command Descriptions

VER Type Internal Purpose Displays the version number of ROM-DOS in use. Allows revision of this version number. Syntax VER [n.nn] [/R] Remarks If a new version number is specified, two digits after the decimal are required. Note that this command revises only the record of the DOS version number; it does not change the actual operating system loaded in the computer. The version command shows both the version of the VER command itself and the version of DOS in operation. Options The /R option shows the full version and release number of ROM-DOS. Example The following example changes the record of current DOS version in use to DOS 5.0. Any programs that are executed, following this command, will recognize that DOS 5.0 is running. VER 5.0

XCOPY Type External Purpose The XCOPY command copies multiple files and optionally subdirectories from one disk to another. Syntax XCOPY [source] [target] [/options] Remarks The XCOPY command is used for copying multiple files and subdirectories, if they exist. The source and the target parameter are complete drive path and file specification descriptions. If a path is not specified, XCOPY assumes the default path. If a file name is not specified then *.* is assumed.

Advanced User’s Guide

B-21

Page 150

The ATTRIB command may be used to modify the archive bit for the various XCOPY options that check the archive status of files. Refer to the ATTRIB command description for instructions. Options The /A copies only source files that have the archive bit set in them. The archive is not reset. The /D<mm-dd-yy> option causes XCOPY to copy only those files with a date later than the date specified in the /D option. The /E option causes XCOPY to create subdirectories on the target even if they are empty. The /M option causes XCOPY to copy only those source files that have the archive bit set. Once the source file is copied the archive bit is reset. The /P option causes XCOPY to prompt before each file is copied. The prompt appears as follows: C:\COMMAND.COM (Y/N)?

If a Y is entered then the file is copied, otherwise, the file is not copied. The /S option causes XCOPY to copy files in subdirectories of the source directory. The /V option causes XCOPY to verify each write to the disk. The /W option causes XCOPY to wait before starting to copy files. The following prompt is displayed. Press any key to begin copying file(s)

Example XCOPY to the A drive all files in the BIN subdirectory that have an EXE extension and that have the archive bit set. XCOPY \bin\*.exe a: /a

B-22

Falcon® DOS Portable Terminals