The text of a manual · part 14 of 16
PDT 3200 Technical Reference Guide: Chapter 5 ROM-DOS Commands, pages 133 to 142
Pages 133 to 142 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 133
Chapter 5: ROM DOS Commands
Command Type Purpose
SET Internal
The SET command is used to set, display, or remove environment variables.
Syntax SET [variable = [string]]
Remarks Environment variables can be used to control the behavior of programs and batch Þles and also the behavior of ROM-DOS. This command can be used in the AUTOEXEC.BAT and CONFIG.SYS Þles and on the DOS command line. The environment variables that can be deÞned with the set command include, but are not limited to, PATH, COMSPEC, PROMPT, and user deÞned variables. Using SET variable = with no argument string will clear the current environment string for the named variable.
Examples SET PROMPT = $p$g
This sets the prompt, although the prompt can also be set with the PROMPT command. SET PROMPT =
This clears any previously set prompt settings and returns the prompt to its default state.
5-81
Page 134
PDT 3200 Technical Reference Guide
Command Type Purpose
SHARE External
SHARE installs the capabilities for Þle-sharing and Þle-locking on your hard disk.
Syntax SHARE [/options]
Or from CONFIG.SYS: INSTALL=[d:][path]SHARE.EXE [/options]
Remarks The SHARE utility is most commonly used in a network or multitasking environment where Þle 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 speciÞes the maximum number of Þles that can be locked at one time. The default number of Þles 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 Þrst 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 Þle and changes the maximum number of locked Þles to 30: INSTALL=C:\UTILS\SHARE.EXE /l:30
The Þnal example unloads SHARE and frees the used memory. SHARE /U
5-82
Page 135
Chapter 5: ROM DOS Commands
Command Type Purpose
SHELL CONFIG.SYS
The SHELL command allows the user to specify a different boot program other than the default COMMAND.COM. ROM-DOS will boot this new program, with arguments, instead of the one speciÞed internally.
Syntax SHELL = boot_program arguments
Remarks The SHELL command is most often used to start the initial copy of COMMAND with special parameters. One parameter is used for providing a larger environment than the default 128 bytes. The boot_program can be any executable program. The full path, including drive letter, should be speciÞed if the program is not in the root directory of the default drive. Arguments are optional and program speciÞc. They will vary depending on the boot_program being executed by the SHELL command.
Examples This SHELL command boots the standard Command Processor but sets the environment space to 512 bytes (up from the default 128). The /P parameter tells COMMAND that it is permanent (cannot terminate). SHELL=C:\COMMAND.COM /E:512 /P
This example of the SHELL command boots a program called MYPROG.EXE, located in the directory TEMP, instead of the standard Command Processor. SHELL = C:\TEMP\MYPROG.EXE
5-83
Page 136
PDT 3200 Technical Reference Guide
Command Type Purpose
SHIFT Internal Batch Subcommand
SHIFT moves each replaceable parameter for a batch Þle one position Òto the left.Ó Execution of the SHIFT command allows use of more replaceable parameters in a batch Þle--beyond the standard set of %0 through %9.
Syntax SHIFT
Remarks This command moves the string or value stored for each replaceable parameter one position to the left. Upon execution of SHIFT, the %0 argument assumes the value of the %1 argument, the %1 argument then assumes the value of the %2 argument, and so on.
Examples The following example batch Þle will read in a list of Þles (provided as arguments on the command line), and display each one to the screen. After displaying each one, the SHIFT command copies the next Þle in the argument list into the %1 slot, veriÞes the existence of the Þle and continues. Command line argument: TYPEIT autoexec.bat config.sys net.bat TYPEIT.BAT batch file: :repeat if EXIST %1 goto doit goto end :doit type %1 pause shift goto repeat :end @echo All Done
5-84
Page 137
Chapter 5: ROM DOS Commands
Command Type Purpose
SORT External
The SORT Þlter sorts a text Þle and displays the output to the standard device.
Syntax SORT [/options] [filename]
Remarks SORT normally starts its comparisons at the Þrst character in a line. The input to SORT may come from a Þle or it may be piped in from another Þlter or a DOS command.
Options The /+n option causes SORT to begin its alphabetical sorting starting at the nth position in the string. The /r option causes SORT to sort in reverse alphabetical order.
Examples The following example sorts the Þle NAMES.LST and displays the output to the screen. SORT NAMES.LST
The following example produces a directory and then sorts the directory by Þle size (the Þle size in a directory display starts on the 14th position each line or string). The output display is then shown one screen at a time. This is done by directing the output from SORT into the display utility MORE. DIR ≠ SORT /+14 ≠ MORE
5-85
Page 138
PDT 3200 Technical Reference Guide
Command Type Purpose
STACKS CONFIG.SYS
The STACKS command allows for the use of dynamic data stacks to handle hardware interrupts. ROM-DOS does not utilize this command, although it can be added to a CONFIG.SYS Þle without error. Using the STACKS command will have no effect on the number or size of stacks available.
Syntax STACKS = number,size
5-86
Page 139
Chapter 5: ROM DOS Commands
Command Type Purpose
SUBMENU CONFIG.SYS
The SUBMENU command deÞnes a menu item that represents a secondary menu when selected. This command can only be used within a menu conÞguration block in the CONFIG.SYS Þle.
Syntax SUBMENU=blockname[,menu_text]
Remarks The blockname argument deÞnes the name of the secondary menu block of commands. The block menu must be deÞned elsewhere in the CONFIG.SYS Þle, otherwise, ROM-DOS will leave this item off of the startup menu. The label can be up to 70 characters long and can contain most printable characters, including spaces, backslashes (\), forward slashes (/), commas, semicolons (;), and equals signs (=). Square brackets ([]) cannot be used in block names. The optional menu_text argument speciÞes the text that ROM-DOS will display for this menu item on the startup menu. If this argument is left out, ROM-DOS will display the block name as the text. The menu text can be up to 70 characters long and can contain any character. The submenu can be deÞned with any user provided descriptive label. It need not have the [MENU] label.
Examples [MENU] menuitem=Word_Proc, Word Processing menuitem=Network, Network submenu=Research, Research and Development menucolor=15,1 menudefault=Word_Proc,20 [WORD PROC] files=10 buffers=10 lastdrive=m device=c:\network\loadnet.sys [NETWORK]
5-87
Page 140
PDT 3200 Technical Reference Guide include=Word_Proc numlock=off [RESEARCH] menuitem=proj1, Project 1 menuitem=proj2, Project 2 menudefault=proj1 [PROJ1] files=50 buffers=25 numlock=on [PROJ2] files=10 buffers=20 device=vdisk.sys 64 /e numlock=off
In the above example, a submenu is deÞned as one of the startup menu choices. If you were to select Research and Development from the Þrst menu, a secondary menu would be displayed offering the choices of Project 1 and Project 2. The actual commands for Project 1 and Project 2 are deÞned in the conÞguration blocks labeled [PROJ1] and [PROJ2].
5-88
Page 141
Chapter 5: ROM DOS Commands
Command Type Purpose
SWITCHES CONFIG.SYS
The SWITCHES command allows special CONFIG.SYS Þle options.
Syntax SWITCHES=[/k][/n][/f]
Remarks The /k argument makes an enhanced keyboard behave like a conventional style 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 Þles.
Examples The following example prevents the user from using the F5 and F8 keys at boot time. switches = /n
5-89
Page 142
PDT 3200 Technical Reference Guide
Command Type Purpose
TIME Internal
Displays the current time as shown on the system's internal clock. Allows resetting of the clock.
Syntax TIME [hh:mm:ss] [pm≠am]
Remarks The time set by this command is used, among other things, for Òtime stampingÓ your Þle revision dates. This information is displayed when you execute a directory listing of your Þles. You may want to include the TIME command in your AUTOEXEC.BAT Þle, to set the date at bootup. If your computer has an internal battery-operated clock, you won't need to do so. The format of the time command is also dependent on the country speciÞed in CONFIG.SYS. The time is displayed according to local standards for the speciÞed country. Also see the DATE command. If you just want to check the time maintained by ROM-DOS, type the TIME command by itself. ROM-DOS will display something like: Current time is 3:00:02.48p Enter new time:
after which you merely press <Enter> to return to an empty command line. If you want to change the time you can include the desired time on the prompt line after the word TIME. Or you may type the command with no option (as you do to check the time) and enter the new time before pressing <Enter>. ROM-DOS displays the time according to the 24-hour clock with the a or p indicator to show AM or PM. The AM/PM indicator can be typed as a or p or as
5-90