home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaDemoCD2.iso / ASCII / TEXTE / SCENE / AMIGA / DOS Commands.txt < prev    next >
Encoding:
Text File  |  1992-09-02  |  163.0 KB  |  5,059 lines

  1. AMIGA DOS 3.0 COMMANDS
  2.  
  3.  
  4. ADDBUFFERS
  5.  
  6.  
  7. Format:            ADDBUFFERS <drive> [<n>]
  8. Template:            DRIVE/A, BUFFERS/A
  9. Purpose:            To instruct the file system to add cache buffers.
  10. Path:            C:ADDBUFFERS
  11. Spesifications:
  12.  
  13. ADDBUFFERS adds <n> buffers to the list of buffers available for
  14. <drive>. Allocating additional buffers makes disk access significantly
  15. faster. However, each additional buffer reduces free memoty by
  16. approximately 500 bytes. The default buffer allocation is 5 for floppy
  17. dives and 30 for hard disks.
  18.  
  19. The number of buffers you should add depends on the amount of extra
  20. memory available. There is no fixed upper limit, but adding too many
  21. buffers can actually reduce overall system performance by taking RAM
  22. away form other system functiones. If a negative number is spesified,
  23. that many buffers is subtracted form the current acollation. The
  24. minimum number of buffers is one; however, using only one is not
  25. recommended.
  26.  
  27. Thirty buffers are generally recommended for a floppy drivein a 512KB
  28. system. The optimal number for a hard disk depends on the type and size
  29. of your drive. Usually you should use the default value recommended by
  30. the HDToolbox program. (This value can be displayed by selecting the
  31. Advanced Options gadget on the Partitioning screen.) As a general rule,
  32. you can use 30 to 50 buffers for every megabyte of disk storage in your
  33. system.
  34.  
  35. If only the <drive> argument is specified, ADDBUFFERS displays the
  36. number of buffers currently allocated for that drive.
  37.  
  38.  
  39. Example 1:
  40.  
  41.     1> ADDBUFFERS DF0:
  42.     DF0: has 5 buffers
  43.  
  44. Displays the number of buffers currently allocated to drive df0:.
  45.  
  46.  
  47. Example 2:
  48.  
  49.     1> ADDBUFFERS DF1: 25
  50.     DF1: HAS 30 BUFFERS
  51.  
  52. Adds 25 buffers to drive df1: and displays the total.
  53. ADDDATATYPES
  54.  
  55.  
  56. Format:            ADDDATATYPES {FILES} [QUIET] [REFRESH]
  57. Template:            FILES/M, QUIET/S, REFRESH/S
  58. Purpose:            To build a list of data types that
  59.                 datatypes.library can understand.
  60. Path:            C:ADDDATATYPES
  61. Specification:
  62.  
  63. ADDDATATYPES is used by datatypes.library to build a list of data types
  64. than it can understand. DataType descriptors are stored in
  65. DEVS:DataTypes.
  66.  
  67. ADDDATATYPES can also be called by application Installation scripts to
  68. add their own data types to the list. Basically, ADDDATATYPES is not a
  69. user program.
  70.  
  71. The FILES option specifies the name(s) of the DataType descriptors to
  72. add to the list of DataType descriptors.
  73.  
  74. The QUIET option, if specified, will surpress error and output
  75. messages.
  76.  
  77. The REFRESH option, is specified, will scan the DEVS:DataTypes
  78. directory for new or changed DataType descriptors.
  79.  
  80. ADDDATATYPES is valid on Workbench 3.0 level software.
  81. ALIAS
  82.  
  83.  
  84. Format:            ALIAS [<name>] [<string>]
  85. Template:            NAME, STRING/F
  86. Purpose:            To set or display command aliases.
  87. Path:            Internal
  88. Specification:
  89.  
  90. ALIAS permits you to create aliases, or alternative names, for AmigaDOS
  91. commands. Using an alias is like replacing a sentence with a single
  92. word. With ALIAS, you can abbreviate frecuently used commands or
  93. replace a standard command name with a different name.
  94.  
  95. When AmigaDOS encounters <name>, it replaces it with the defined
  96. <string>, integrates the result with the rest of the command line, and
  97. attempts to interpret and execute the resulting line as an AmigaDOS
  98. command. So <name> is the alias (whatever you want to call the
  99. command), and <string> is the command to be substituted for the alias.
  100.  
  101. An alias must be entered at the beginning of the command line. You can
  102. enter arguments after the alias. However, you cannot create an alias to
  103. represent a series of command arguments. For example, in the following
  104. command line:
  105.  
  106.     1> LIST PicDir TO RAM:filelist
  107.     LFORMAT="SYS:Utilities/display %f%n"
  108.  
  109. you could not replace the LFORMAT argument with an alias. You
  110. can substitute a filename or other instruction within an alias by
  111. placing square brackets ([ ]) in the <string>. Any argument entered
  112. after the alias will be inserted at the brackets.
  113.  
  114. ALIAS <name> displays the <string> for that alias. ALIAS alone
  115. lists all current aliases.
  116.  
  117. Aliases are local to the Shell in which they are defined. If you
  118. create another Shell with the NEWSHELL command, it will share
  119. the same aliases as its parent Shell. However, if you create another
  120. Shell with the Execute Command menu item, it will not recognize
  121. aliases created in your original Shell. To create a global alias that
  122. will be recognized by all Shells, insert the alias in the Shell-startup
  123. file.
  124.  
  125. To remove an ALIAS, use the UNALIAS command.
  126.  
  127.  
  128. Example 1:
  129.  
  130.     1> ALIAS d1 DIR DF1:
  131.  
  132. Entering d1 results in a directory of the contents of the disk in
  133. DF1:, just as ifyou had entered DIR DF1:.
  134. Example 2:
  135.  
  136.     1> ALIAS hex TYPE [] HEX NUMBER
  137.  
  138. creates an alias called hex that displays the contents of a specifed
  139. fle in hexadecimal format. The brackets indicate where the
  140. flename will be inserted. If you then entered:
  141.  
  142.     1> hex Myfile
  143.  
  144. the contents of Myfile would be displayed in hexadecimal format
  145. with line numbers.
  146.  
  147.  
  148. See also: UNALIAS
  149. ASK
  150.  
  151.  
  152. Format:            ASK <prompt>
  153. Template:            PROMPT/A
  154. Purpose:            To obtain user input when executing a script fle.
  155. Path:            Internal
  156. Specification:
  157.  
  158. ASK is used in scripts to write the string specifed by <prompt> to
  159. the current window then wait for keyboard input. Valid keyboard
  160. responses are Y (yes), N (no), and Return (no). If Y is pressed, ASK
  161. sets the condition flag to 5 (WARN). If N or Return is pressed, the
  162. condition flag is set to 0. To check the response, an IF statement
  163. can be used.
  164.  
  165. If the <prompt> contains spaces, it must be enclosed in quotation
  166. marks.
  167.  
  168. Example:
  169.  
  170. Assume a script contained the following commands:
  171.  
  172.     ASK Continue?
  173.     IF WARN
  174.         ECHO Yes
  175.     ELSE
  176.         ECHO No
  177.     ENDIF
  178.  
  179. When the ASK command is reached, "Continue?" will appear on the
  180. screen. If Y is pressed, Yes will be displayed on the screen. If N is
  181. pressed, No will be displayed.
  182.  
  183. See also: IF, ELSE, ENDIF, WARN
  184. ASSIGN
  185.  
  186.  
  187. Format:ASSIGN [<name>: {dir}] [LlST] [EXlSTS] [DlSMOUNT]
  188. [DEFER] [PATH] [ADD] [REMOVE] [VOLS] [DlRS]
  189. [DEVlCES]
  190. Template:NAME, TARGET/M, LlST/S, EXlSTS/S, DlSMOUNT/S,
  191. DEFER/S, PATH/S, ADD/S, REMOVE/S, VOLS/S, DlRS/S,
  192. DEVlCES/S
  193. Purpose:To control assignment oflogical device names to
  194. file system directories.
  195. Path:            C:ASSlGN
  196. Specifcation:
  197.  
  198.  
  199. ASSIGN allows directories to be referenced via short, convenient
  200. logical device names rather than their usual names or complete
  201. paths. The ASSIGN command can create assignments, remove
  202. assignments, or list some or all current assignments.
  203.  
  204. If the <name> and {dir} arguments are given, ASSIGN will assign
  205. the given name to the specified directory. Each time the assigned
  206. logical device name is referred to, AmigaDOS will access the
  207. specified directory. If the <name> given is already assigned to a
  208. directory, the new directory will replace the previous directory.
  209. (Always be sure to include a colon after the <name> argument.)
  210.  
  211. If only the <name> argument is given, any existing ASSIGN of a
  212. directory to that logical device will be cancelled.
  213.  
  214. You can assign several logical device names to the same directory by
  215. using multiple ASSIGN commands.
  216.  
  217. You can assign one logical device name to several directories by
  218. specifying each directory after the <name> argument or by using the ADD
  219. option. When the ADD option is specified, any existing directory
  220. assigned to <name> is not cancelled. Instead, the newly specified
  221. directory is added to the ASSIGN list, and the system will search for
  222. both directories when <name> is encountered. If the original directory
  223. is not available, ASSIGN will be satisfied with the newly added
  224. directory.
  225.  
  226. To delete a name from the ASSIGN list, use the REMOVE option.
  227.  
  228. If no arguments are given with ASSIGN, or if the LIST keyword is used,
  229. a list of all current assignments will be displayed. If the VOLS, DIRS,
  230. or DEVICES switch is specified, ASSIGN will limit the display to
  231. volumes, directories, or devices, respectively.
  232.  
  233. When the EXISTS keyword is given along with a logical device name,
  234. AmigaDOS will search the ASSIGN list for that name and display the
  235. volume and directory assigned to that device. If the device name is not
  236. found, the condition flag is set to 5 (WARN). This is commonly used in
  237. scripts.
  238. Normally, when the (dir) argument is given, AmigaDOS immediately looks
  239. for that directory. If the ASSIGN commands are part of the
  240. Startup-sequence, the directories need to be present on a mounted disk
  241. during the boot procedure. If an assigned directory cannot be found, a
  242. requester appears asking for the volume containing that directory.
  243. However, two new options, DEFER and PATH, will wait until the directory
  244. is actually needed before searching for it.
  245.  
  246. The DEFER option creates a "late-binding" ASSIGN. This ASSIGN
  247. only takes effect when the assigned object is first referenced, rather
  248. than when the assignment is made. This eliminates the need to
  249. insert disks during the boot procedure that contain the directories
  250. that are assigned during the Startup-sequence. When the DEFER
  251. option is used, the disk containing the assigned directory is not
  252. needed until the object is actually called upon. The assignment
  253. remains in force until explicitly changed.
  254.  
  255. For example, if you ASSIGN FONTS: to DF0:Fonts with the DEFER
  256. option, the system will associate FONTS: with whatever disk is in
  257. DF0: at the time FONTS: is called. If you have a Workbench disk in
  258. DF0: at the time the FONTS: directory is needed, the system will
  259. associate FONTS: with that particular Workbench disk. If you later
  260. remove that Workbench disk and insert another disk containing a
  261. FONTS: directory, the system will specifically request the original
  262. Workbench disk the next time FONTS: is needed.
  263.  
  264. It is not necessary for the assigned name to retain the name of the
  265. directory nor is it necessary for it to be uppercase. For example,
  266. both CLIPS and Clips can be assigned to the Ram Disk:Clipboards
  267. directory.
  268.  
  269. The PATH option creates a "non-binding" ASSIGN. A non-binding ASSIGN
  270. acts like a DEFERred ASSIGN except that it is re-evaluated each time
  271. the assigned name is referenced. This prevents the system from
  272. expecting a particular volume in order to use a particular directory
  273. (such as the situation described in the example above). For example,
  274. ifyou assign FONTS: to DFO:Fonts with the PATH option, any disk in DF0:
  275. will be searched when FONTS: is referenced. As long as the disk
  276. contains a FONTS: directory, it will satisfy the ASSIGN. You cannot
  277. assign multiple directories with the PATH option.
  278.  
  279. The PATH option is especially useful to users with floppy disk systems
  280. as it eliminates the need to reinsert the original Workbench disk used
  281. to boot the system. As long as the drive you have assigned with the
  282. PATH option contains a disk with the assigned directory name, the
  283. system will use that disk. The DISMOUNT option disconnects a volume or
  284. device from the list of mounted devices. It does not free up resources;
  285. it merely removes the name from the list. There is no way to cancel a
  286. DISMOUNT without rebooting. DISMOUNT is primarily for use during
  287. software development. Careless use of this option may cause a software
  288. failure.
  289. Example 1:
  290.  
  291.     1> ASSIGN FONTS: MyFonts:Fontdir
  292.  
  293. assigns the FONTS: directory to Fontdir on MyFonts:.
  294.  
  295.  
  296. Example 2:
  297.  
  298.     1>  ASSIGN  LIST
  299.     Volumes:
  300.     Ram Disk [Mounted]
  301.     Workbench [Mounted]
  302.     MyFonts [Mounted]
  303.  
  304.     Directories:
  305.     LOCALE    Workbench:Locale
  306.     KEYMAPS    Workbench:Devs/Keymaps
  307.     PRINTERS    Workbench:Devs/Printers
  308.     REXX        Workbench:S
  309.     CLIPS    Ram Disk:Clipboards
  310.     ENV        Ram Disk:Env
  311.     T        Ram Disk:T
  312.     ENVARC    Workbench:Prefs/Env-Archive
  313.     SYS        Workbench:
  314.     C        Workbench:C
  315.     S        Workbench:S
  316.     L        Workbench:L
  317.     FONTS    MyFonts:Fontdir
  318.     DEVS        Workbench:Devs
  319.     LIBS        Workbench:Libs
  320.  
  321.     Devices:
  322.     PIPE AUX RAM CON
  323.     RAW PAR SER PRT DFO DF1
  324.  
  325. shows a list of all current assignments.
  326.  
  327.  
  328. Example 3:                                                             
  329.  
  330.     1>  ASSIGIV  FONTS:  EXISTS
  331.     FONTS: MyFonts:FontDir
  332.  
  333. is an inquiry into the assignment of FONTS:. AmigaDOS responds
  334. by showing that FONTS: is assigned to the FontDir directory of the
  335. MyFonts volume.
  336.  
  337.  
  338. Example 4:
  339.  
  340.     1> ASSIGN LIBS: SYS:Libs BigAssem:Libs PDAssem:Libs
  341.  
  342. is a multiple-directory assignment that creates a search path
  343. containing three Libs directories. These directories will be searched
  344. in sequence each time LIBS: is invoked.
  345. Example 5:
  346.  
  347.     1>  ASSIGN DEVS:  REMOVE
  348.  
  349. removes the DEVS: assignment from the system.
  350.  
  351.  
  352. Example 6:
  353.  
  354.     1> ASSIGN WorkDisk: DF0: DEFER
  355.     1> ASSIGN WorkDisk: EXISTS
  356.     WorkDisk <DF0:>
  357.  
  358. sets up a late-binding assignment of the logical device WorkDisk:.
  359. The disk does not have to be inserted in DF0: until the first time
  360. you refer to the name WorkDisk:. Notice that ASSIGN shows DF0:
  361. enclosed in angle brackets to indicate that it is DEFERred. After
  362. the first reference to WorkDisk:, the volume name of the disk that
  363. was in DF0: at the time will replace <DF0:>.
  364.  
  365.  
  366. Example 7:
  367.  
  368.     1>  ASSIGN C: DF0:C PATH
  369.     1>  ASSIGN C: EXISTS
  370.     WorkDisk <DF0:>
  371.  
  372. will reference the C directory of whatever disk is in DF0: at the time
  373. a command is searched for. Notice that ASSIGN shows DFO:C in
  374. square brackets to indicate that it is a non-binding ASSIGN.
  375.  
  376.  
  377. Example 8:
  378. 1> ASSIGN LIBS: ZCad:Libs ADD
  379.  
  380. adds ZCad:Libs to the list ofdirectories assigned as LIBS:.
  381.  
  382.  
  383. Example 9:
  384. 1> ASSIGN LIBS: ZCad:Libs REMOVE
  385.  
  386. removes ZCad:Libs from the list of directories assigned as LIBS:.
  387. AUTOPOINT
  388.  
  389.  
  390. Format:            AUTOPOINT [CX_PRIORITY <priority>]
  391. Template:            CX_PRlORlTY/N/K
  392. Purpose:To automatically select any window the pointer is
  393. over.
  394. Path:            Extras:Tools/Commodities/AutoPoint
  395. Specification:
  396.  
  397. When AUTOPOINT is run, any window that the pointer is over is
  398. automatically selected. You do not need to click the selection button
  399. to activate it.
  400.  
  401. The CX_PRIORITY <priority> argument sets the priority of AutoPoint in
  402. relation to all the other Commodity Exchange programs. (This is the
  403. same as entering a CX_PRIORITY=<priority> Tool Type in the icon's
  404. Information window.) All the Commodity Exchange programs are set to a
  405. default priority of 0. If you specify a <priority> value higher than 0,
  406. AutoPoint will take priority over any other Commodity Exchange program.
  407.  
  408. To exit AutoPoint when it has been started from a Shell, press Ctrl+C
  409. or use the BREAK command.
  410.  
  411.  
  412. Example:
  413.  
  414.     1> AUTOPOINT
  415.  
  416. starts the AutoPoint program.
  417. AVAIL
  418.  
  419.  
  420. Format:            AVAIL [CHlP|FAST|TOTAL] [FLUSH]
  421. Template:            CHlP/S, FAST/S, TOTAL/S, FLUSH/S
  422. Purpose:To report the amount of CHIP and FAST memory
  423. available.
  424. Path:            C:AVAlL
  425. Specification:
  426.  
  427. AVAIL gives a summary of the system RAM, both CHIP and FAST. For each
  428. memory type, AVAIL reports the total amount of memory, how much is
  429. available, how much is currently in use, and the largest contiguous
  430. memory block not yet allocated.
  431.  
  432. By using the CHIP, FAST and/or TOTAL options, you can have AVAIL
  433. display only the number of free bytes of CHIP, FAST or TOTAL RAM
  434. available, instead of the complete summary. This value can be used for
  435. comparisons in scripts.
  436.  
  437. The FLUSH option causes all unused libraries, devices, and fonts to be
  438. expunged from memory.
  439.  
  440.  
  441. Example l:
  442.  
  443.     1> AVAIL
  444.     Type        Available        In-Use    Maximum    Largest
  445.     chip           233592        282272     515864      76792
  446.     fast           341384        182896     524280     197360
  447.     total       574976        465168    1040144     197360
  448.  
  449. A complete summary of system RAM is displayed.
  450.  
  451.  
  452. Example 2:
  453.  
  454.     1> AVAIL CHIP
  455.     233592
  456.  
  457. The number of free bytes of CHIP RAM is displayed.
  458. BINDDRIVERS
  459.  
  460.  
  461. Format:            BINDDRIVERS
  462. Template:            (none)
  463. Purpose:            To bind device drivers to hardware.
  464. Path:            C:BlNDDRlVERS
  465. Specification:
  466.  
  467. BINDDRIVERS is used to load and run device drivers for add-on hardware
  468. that is automatically configured by the expansion library. The device
  469. drivers must be in the SYS:Expansion directory for BINDDRIVERS to find
  470. them.
  471.  
  472. BINDDRIVERS is normally placed in the Startup-sequence file. If drivers
  473. for expansion hardware are in the Expansion directory, you must have a
  474. BINDDRIVERS command in your Startup-sequence or the hardware will not
  475. be configured when the system is booted.
  476. BLANKER
  477.  
  478.  
  479. Format:BLANKER [CX_PRIORITY <priority>] [CX_POPKEY <key>]
  480. [CX_POPUP=<yes|no>) [SECONDS <timeout>]
  481. [CYCLECOLORS <yes|no>] [ANlMATlON <yes|no>]
  482. Template:CX PRlORlTY/N/K, CX POPKEY/K, CX POPUP/K,
  483. SECONDS/N/K, CYCLECOLORS/K, ANlMATlON/K
  484. Purpose:To cause the monitor screen to go blank if no input
  485. has been received within a specified period of time
  486. Path:            Extras:Tools/Commodities/Blanker
  487. Specification:
  488.  
  489. BLANKER is a Commodity Exchange program that causes the
  490. screen to go blank if no mouse or keyboard input has been received
  491. in the specified number of seconds. The SECONDS argument
  492. allows you to specify the number of seconds that must pass. The
  493. acceptable range is from 1 to 9999. Default is 60 seconds.
  494.  
  495. CX_POPKEY allows you to specify the hot key for the program. If more
  496. than one key is specified, be sure to enclose the entire argument in
  497. double-quotes (i.e., CX_POPKEY="Shift F1").
  498.  
  499. CX_POPUP=no will prevent the Blanker window from opening. (By default
  500. the program window opens when the command is invoked.)
  501.  
  502. CX_PRIORITY sets the priority of Blanker in relation to all other
  503. Commodity Exchange programs. All the Commodity Exchange programs are
  504. set to a default priority of 0.
  505.  
  506. If CYCLECOLORS=yes is specified, Blanker will cycle through a series of
  507. colors. If CYCLECOLORS=no is specified, Blanker will display the
  508. default color.
  509.  
  510. If ANIMATION=yes is specified, the screen will display a series of
  511. random splines. If ANIMATION=no is specified, a blank screen will
  512. appear.
  513.  
  514. To exit Blanker when it has been started through the Shell, press
  515. Ctrl+C or use the BREAK command.
  516.  
  517.  
  518. Example 1:
  519.  
  520.     1> BLANKER SECONDS=45
  521.  
  522. The Blanker window will open, and 45 will be displayed inside its text
  523. gadget. If no mouse or keyboard input is received during a 45 second
  524. interval, the screen will go blank.
  525.  
  526.  
  527. Example 2:
  528.  
  529.     1> BLANKER CX_POPUP=no
  530.  
  531. The Blanker program will start. If no input is received within 60
  532. seconds (the default), the screen will go blank. The Blanker window
  533. will not open.
  534. BREAK
  535.  
  536.  
  537. Format:            BREAK <process> [ALL|C|D|E|F]
  538. Template:            PROCESS/A/N, ALL/S, C/S, D/S, E/S, F/S
  539. Purpose:            To set attention flags in the specified process.
  540. Path:            C:BREAK
  541. Specification:
  542.  
  543. BREAK sets the specified attention flags in the <process> indicated.
  544. Use the STATUS command to display the currrent process numbers. C sets
  545. the Ctrl+C flag, D sets the Ctrl+D flag, and so on. ALL sets all the
  546. flags from Ctrl+C to Ctrl+F. By default, only the Ctrl+C flag is set.
  547.  
  548. The action of BREAK is identical to selecting the relevant process by
  549. clicking in its window and pressing the appropriate Ctrl+key
  550. combination(s).
  551.  
  552. Ctrl+C is used as the default for sending a BREAK signal to halt a
  553. process. A process that has been aborted this way will display ***BREAK
  554. in the Shell window. Ctrl+D is used to halt execution of a script file.
  555. Use the STATUS command to display the current process numbers.
  556.  
  557. Ctrl+F is used by programs that open windows. Sending these programs a
  558. Ctrl+F signal will cause them to activate their window and bring it to
  559. the front of all windows. Not all programs respond to Ctrl+F.
  560.  
  561.  
  562. Example 1 :
  563.  
  564.     1> BREAK 7
  565.  
  566. sets the Ctrl+C attention flag of process 7. This is identical to
  567. selecting process 7 and pressing Ctrl+C.
  568.  
  569.  
  570. Example 2:
  571.  
  572.     1> BREAK 5 D
  573.  
  574. sets the Ctrl+D attention flag of process 5.
  575.  
  576.  
  577. See also: STATUS
  578. CALCULATOR
  579.  
  580.  
  581. Format:CALCULATOR [PUBSCREEN <public screenname>] [TAPE
  582. <window>]
  583. Template:            PUBSCREEN, TAPE/K
  584. Purpose:            To provide an on-screen calculator.
  585. Path:            Extras:Tools/Calculator
  586. Specification:
  587.  
  588. CALCULATOR starts the Calculator program. You can cut and paste the
  589. output of the Calculator into any console window, like the Shell or ED.
  590.  
  591. TAPE allows you to create a Calculator window of a specific size in
  592. which to display your input and output. The specification is in the
  593. form of:
  594. TAPE=RAW:x/y/width/height/title/options
  595.  
  596. where:
  597.       xIs the number of pixels from the left edge of the screen
  598. to the left border of the window.
  599.       yIs the number of pixels from the top of the screen to
  600. the top of the window.
  601.       width    Is the width of the window, in pixels.
  602.       height    Is the height of the window, in pixels.
  603.       title    Is the text that appears in the window title bar.
  604.  
  605. The permissible options are:
  606.  
  607. AUTOThe window automatically appears when the program needs input
  608. or produces output. With the Shell window, it will open for
  609. input immediately. The window can only be closed with the
  610. ENDSHELL command. Selecting the Shell's close gadget will
  611. close the window, but it will re-open immediately since it is
  612. expecting input.
  613.  
  614. CLOSEThe window has all the standard gadgets, including a close
  615. gadget.
  616.  
  617. BACKDROPThe window appears on the backdrop, behind all the Workbench
  618. windows. The only gadget in the window border is the zoom
  619. gadget. This Shell window cannot be brought to the front of
  620. the screen; you have to resize the Workbench windows to see
  621. it.
  622.  
  623. NOBORDERThe window opens without any left or bottom window border.
  624. Only the zoom, depth, and sizing gadgets are available.
  625.  
  626. NODRAGThe window cannot be dragged. It has a zoom, depth and sizing
  627. gadget, but no close gadget.
  628.  
  629. NOSIZEThe window only has a depth gadget.
  630.  
  631. SCREENThe window will open on a public screen. The screen must
  632. already exist. You must specify the name of the screen after
  633. the SCREEN keyword.
  634. SIMPLEIf you enlarge the window, the text will expand to fill the
  635. newly available space, allowing you to see text that had been
  636. scrolled out of the window.
  637.  
  638. SMARTIf you enlarge the window, the text does not expand to fill
  639. the newly available space.
  640.  
  641. WAITThe window can only be closed by selecting the close gadget.
  642. (An example of this is the Execute Command Workbench Output
  643. Window.)
  644.  
  645.  
  646. To exit the program, select the window's close gadget.
  647.  
  648. Example:
  649.  
  650.     1> CALCULATOR
  651. CD
  652.  
  653.  
  654. Format:        CD [<dir|pattern>]
  655. Template:      DIR
  656. Purpose:       To set, change, or display the current directory.
  657. Path:          Internal
  658. Specification:
  659.  
  660. CD with no arguments displays the name of the current directory. When a
  661. valid directory name is given, CD makes the named directory the current
  662. directory.
  663.  
  664. CD does not search through the disk for the specified directory. It
  665. expects it to be in the current directory. If it is not, you must give
  666. a complete path to the directory. If CD cannot find the specified
  667. directory in the current directory or in the given path, a Can't find
  668. <directory> error message is displayed.
  669.  
  670. If you want to move up a level in the filing hierarchy to the parent
  671. directory of the current directory, enter CD followed by a space and a
  672. single slash (/). Moving to another directory in the parent can be done
  673. at the same time by including its name after the slash. If the current
  674. directory is a root directory, CD / will have no effect. Multiple
  675. slashes are allowed; each slash refers to an additional higher level.
  676. When using multiple slashes, leave no spaces between them.
  677.  
  678. To move directly to the root directory of the current device, use CD
  679. followed by a space and a colon, i.e., CD :.
  680.  
  681. CD also supports pattern matching. If more than one directory matches
  682. the given pattern, an error message is displayed.
  683.  
  684.  
  685. Example 1:
  686.  
  687.     1> CD DF1:Work
  688.  
  689. sets the current directory to the Work directory on the disk in drive
  690. DF1:.
  691.  
  692.  
  693. Example 2:
  694.  
  695.     1> CD SYS:Com/Basic
  696.  
  697. makes the subdirectory Basic in the Com directory the current
  698. directory.
  699.  
  700.  
  701. Example 3 :
  702.  
  703.     1> CD //
  704.  
  705. moves up two levels in the directory structure.
  706. Example 4:
  707.  
  708.     1> CD SYS:Li#?
  709.  
  710. uses the #? pattern to match with the Libs: directory.
  711. CHANGETASKPRI
  712.  
  713.  
  714. Format:            CHANGETASKPRI <priority>PROCESS [<process number>]
  715. Template:            PRI=PRIORITY/A/N, PROCESS/K/N
  716. Purpose:To change the priority of a currently running
  717. process.
  718. Path:            C:CHANGETASKPRI
  719. Specification:
  720.  
  721. Since the Amiga is multitasking, it uses priority numbers to determine
  722. the order in which current tasks should be serviced. Normally, most
  723. tasks have a priority of 0, and the time and instruction cycles of the
  724. CPU are divided equally among them. CHANGETASKPRI changes the priority
  725. of the specified Shell process. (lf no process is specified, the
  726. current Shell process is assumed.) Any tasks started from <process
  727. number> inherit its priority.
  728.  
  729. Use the STATUS command to display the current process numbers.
  730.  
  731. The range of acceptable values for <priority> is the integers from -128
  732. to 127, with higher values yielding a higher priority (a greater
  733. proportion of CPU time is allocated). However, do not enter values
  734. above +10, or you may disrupt important system tasks. Too low a
  735. priority (less than 0) can result in a process taking unreasonably long
  736. to execute.
  737.  
  738.  
  739. Example:
  740.  
  741.     1> CHANGETASKPRI 4 Process 2
  742.  
  743. The priority of Process 2 is changed to 4. Any tasks started from this
  744. Shell will also have a priority of 4. They will have priority over any
  745. other user tasks created without using CHANGETASKPRI (those tasks will
  746. have a priority of 0).
  747.  
  748.  
  749. See also: STATUS
  750. CLICKTOFRONT
  751.  
  752.  
  753. Format:CLICKTOFRONT [CX_PRIORITY <priority>] [QUALIFIER
  754. <qualifer>]
  755. Template:CX_PRIORlTY/N/K, QUALlFlER/K
  756. Purpose:            To bring a window to the front of the screen.
  757. Path:            Extras:Tools/Commodities/C1ickToFront
  758. Specification:
  759.  
  760. CLICKTOFRONT allows you to bring a window to the front of the
  761. screen by double-clicking in it. You do not need to select the
  762. window's depth gadget.
  763.  
  764. The CX_PRIORITY <priority> argument sets the priority of ClickToFront
  765. in relation to all the other Commodity Exchange programs. (This is the
  766. same as entering a CX_PRIORITY=<priority> Tool Type in the icon's
  767. Information window.) All the Commodity Exchange programs are set to a
  768. default priority of 0. If you specify a <priority> value higher than 0,
  769. ClickToFront will take priority over any other Commodity Exchange
  770. program.
  771.  
  772. To start ClickToFront, double-click on its icon. It does not open a
  773. window. (Remember, you can also put ClickToFront in the WBStartup
  774. drawer so that it is automatically started each time you boot.)
  775.  
  776. QUALIFIER allows you to specify a qualifier key that must be
  777. pressed while double-clicking in the window you want to bring to
  778. the front ofthe screen. The acceptable key arguments are:
  779.  
  780.     Lalt            Left Alt
  781.     Left_Alt        Left Alt
  782.     Ralt            Right Alt
  783.     Right_Alt        Right Alt
  784.     Ctrl            Ctrl
  785.     Control        Ctrl
  786.     None            No key
  787.  
  788. To exit ClickToFront when it has been started from the Shell, press
  789. Ctrl+C, or use the BREAK command.
  790. CLOCK
  791.  
  792.  
  793. Format:CLOCK [DlGlTAL] [<LEFT>] [<TOP>] [<WlDTH>]
  794. [<HElGHT>] [24HOUR] [SECONDS] [DATE] [<FORMAT>)
  795. [PUBSCREEN <public screen name>)
  796. Template:DIGITAL/S, LEFT/N, TOP/N, WlDTH/N, HElGHT/N,
  797. 24HOURJ5, 5ECOND5/5, DATE/5, FORMAT/N, PUBSCREEN/K
  798. Purpose:            To provide an on-screen clock.
  799. Path:            SYS:Utilities/Clock
  800. Specification:
  801.  
  802. CLOCK allows you to display an on-screen clock. The DIGITAL
  803. option opens a digital clock.
  804.  
  805. The LEFT, TOP, WIDTH, and HEIGHT options allow you to specify the size
  806. and position of the clock. The keywords are optional; however, the
  807. clock understands numerical arguments by their position, as outlined
  808. below:
  809.  
  810. 1st numberThe clock will open <n> pixels from the left edge of the
  811. screen.
  812. 2nd numberThe clock will open <n> pixels from the top of the
  813. screen.
  814. 3rd number    The clock will be <n> pixels wide.
  815. 4th number    The clock will be <n> pixels high.
  816.  
  817. For example, if you only wanted to specify the width and height of the
  818. Clock, you would have to use the WIDTH and HEIGHT keywords. If you only
  819. entered two numbers, the clock would interpret them as the LEFT and TOP
  820. positions.
  821.  
  822. WIDTH and HEIGHT are not available if you use the DIGITAL option. You
  823. cannot change the size of the digital clock, although you can specify
  824. its position.
  825.  
  826. If the SECONDS option is specified, the seconds are displayed.
  827.  
  828. If the DATE option is specified, the date is displayed.
  829.  
  830.  
  831. Example 1 :
  832. To open a clock that is 75 pixels from the left edge of the screen, 75
  833. pixels from the top edge of the screen, 300 pixels wide and 100 pixels
  834. high, enter:
  835.  
  836.     1> CLOCK 75 75 300 100
  837.  
  838. Example 2:
  839. To use the SECONDS, DATE and 24HOUR options, enter:
  840.  
  841.     1> CLOCK SECONDS DATE 24HOUR
  842.  
  843. Example 3:
  844. To open a digital clock that is 320 pixels from the left edge of the
  845. screen and in the screen's title bar (0 pixels from the top), enter:
  846.  
  847.     1> CLOCK DIGITAL 320 0
  848. CMD
  849.  
  850.  
  851. Format:            CMD <devicename> <filename> [OPT s|m|n]
  852. Template:            DEVlCENAME/A, FlLENAME/A, OPT/K
  853. Purpose:            To redirect printer output to a file.
  854. Path:            Extras:Tools/CMD
  855. Specification:
  856.  
  857. The <devicename> can be serial, parallel or printer, and should be the
  858. same device as specified in the Printer editor. <Filename> is the name
  859. of the file to which the redirected output should be sent. The CMD
  860. options are as follows:
  861.  
  862. sSkip any short initial write (usuall a reset if redirecting a
  863. screen dump).
  864. mIntercept multiple files until a BREAK command or Ctrl+C is
  865. entered.
  866. n    Notify user of progress (messages are displayed on screen).
  867.  
  868.  
  869. Example:
  870.  
  871.  
  872.     1> CMD parallel RAM:cmd_file
  873.  
  874. Any output sent to the parallel port will be rerouted to a file in
  875. RAM: called cmd_file.
  876. COLORS
  877.  
  878.  
  879. Format:            COLORS [<bitplanes> <screentype>]
  880. Template:            BITPLANES, SCREENTYPE
  881. Purpose:            To change the colors of the frontmost screen.
  882. Path:            Extras:Tools/Colors
  883. Specification:
  884.  
  885. COLORS lets you change the colors of the frontmost screen. By
  886. specifying values for the <bitplanes> and <screentype> options, you can
  887. open a custom test screen. The acceptable values for <bitplanes> and
  888. <screentype> are listed below:
  889.  
  890.  
  891.        <bitplanes>                      <screentype>
  892.  (Specifies the depth of the        (Specifies the resolution of
  893.  test screen:)                        the test screen:)
  894.  
  895.     1    2 colors                0    320 x 200 pixels
  896.     2    4 colors                1    320 x 400 pixels
  897.     3    8 colors                2    640 x 200 pixels
  898.     4    16 colors                3    640 x 400 pixels
  899.     5    32 colors                                                
  900.  
  901. The value for <bitplanes> is restricted to 4 or less if the value for
  902. <screentype> is equal to either 2 or 3.
  903.  
  904.  
  905. Example:
  906.  
  907.     1> COLORS 3 2
  908.  
  909. A new custom screen will be opened, and it will display a window for
  910. the color program. The screen will have 8 colors and a 640 x 200 pixel
  911. (High Res) resolution.
  912. CONCLIP
  913.  
  914.  
  915. Format:            CONCLIP [UNlT <unit number>] [OFF]
  916. Template:            UNlT/N, OFF/S
  917. Purpose:To move data between the console.device, the
  918. clipboard.device and CON:
  919. Path:            C:CONCLlP
  920. Specification:
  921.  
  922. CONCLIP is called from the standard Startup-sequence. When it is run,
  923. the user can copy text from standard Shell windows by drag selecting
  924. text with the mouse. Once text is highlighted, it can then be copied to
  925. the clipboard by pressing right Amiga+C. In addition, some other
  926. console.device windows may support the ability to drag select text,
  927. such as ED and MEmacs. The copied text can then be pasted into any
  928. application window which supports reading text from the clipboard, such
  929. as the Shell, ED, and MEmacs. To paste text, press right Amiga+V.
  930.  
  931. CONCLIP requires iffparse.library and the clipboard.device and opens
  932. the first time you copy or paste text. Because of this, users with
  933. floppy-based systems may notice some delay as iffparse.library and the
  934. clipboard.device are loaded from disk (assuming that they have not
  935. already been loaded by some other application).
  936.  
  937. The UNIT option allows you to specify the clipboard.device unit number
  938. to use. You can specify any unit from 0 to 255. The default number is
  939. 0. This option is primarily for advanced users or programmers who may
  940. want to use different units for different data, such as one for text
  941. and another for graphics. You do not need to turn CONCLIP off to change
  942. the UNIT number. Simply run the command from the Shell, specifying the
  943. new unit number. The next time you copy and paste, that clipboard unit
  944. will be used.
  945.  
  946. The OFF option allows the more advanced user or programmer to turn off
  947. CONCLIP. When turned off, text is not copied to the clipboard, and
  948. pasting is transparently managed by the console.device. In general,
  949. there is no reason to turn CONCLIP off.
  950. COPY
  951.  
  952.  
  953. Format:COPY [FROM] {<name|pattern>} [TO] <name|pattern>
  954. [ALL] [QUIET] [BUF|BUFFER=<n>] [CLONE] [DATES]
  955. [NOPRO] [COM] [NOREQ]
  956. Template:FROM/M, TO/A, ALL/S, QUlET/S, BUF=BUFFER/K/N,
  957. CLONE/S, DATES/S, NOPRO/S, COM/S, NOREQ/S
  958. Purpose:            To copy files or directories.
  959. Path:            C:COPY
  960. Specification:
  961.  
  962. COPY copies the file or directory specified with the FROM argument to
  963. the file or directory specifed by the TO argument. You can copy several
  964. items at once by giving more than one FROM argument; each argument
  965. should be separated by spaces. You can use pattern matching to copy or
  966. exclude items whose names share a common set of characters or symbols.
  967.  
  968. If a TO filename already exists, COPY overwrites the TO file with the
  969. FROM file. If you name a destination directory that does not exist,
  970. COPY will create a directory with that name. You can also use a pair of
  971. double quotes ("") to refer to the current directory when specifying a
  972. destination. Do not put any spaces between the double quotes.
  973.  
  974. If the FROM argument is a directory, only the directory's files will be
  975. copied; its subdirectories will not be copied. Use the ALL option to
  976. copy the complete directory, including its files, subdirectories, and
  977. the subdirectories' files. If you want to copy a directory and you want
  978. the copy to have the same name as the original, you must include the
  979. directory name in the TO argument.
  980.  
  981. COPY prints to the screen the name of each file as it is copied. This
  982. can be overridden by the QUIET option.
  983.  
  984. The BUF= option is used to set the number of 512-byte buffers used
  985. during the copy. (Default is 200 buffers, approximately 100KB of RAM.)
  986. It is often useful to limit the number of buffers when copying to RAM:.
  987. BUF=0 uses a buffer the same size as the file to be copied.
  988.  
  989. Normally, COPY gives the TO file the date and time the copy was made,
  990. rather than the date and time the file was created or last revised. Any
  991. comments attached to the original FROM file are ignored. The protection
  992. bits of the FROM file are copied to the TO file. Several options allow
  993. you to override these defaults:
  994.  
  995. DATESThe creation or last revised date (whichever is most recent)
  996. of the FROM file is copied to the TO file.
  997. COMAny comment attached to the FROM file is copied to the TO
  998. file.
  999. NOPROThe protection bits of the FROM file are not copied to the TO
  1000. file. The TO file will be given standard protection bits of
  1001. r, w, e and d.
  1002. CLONEThe creation (or last revised) date, comments and protection
  1003. bits of the FROM file are copied to the TO file.
  1004. Normally, COPY displays a requester if the COPY cannot continue for
  1005. some reason. When the NOREQ option is given, all requesters are
  1006. suppressed. This is useful in scripts and can prevent a COPY failure
  1007. from stopping the script while it waits for a response. For example, if
  1008. a script calls for a certain file to be copied and the system cannot
  1009. find that file, normally the script would display a requester and would
  1010. wait until a response was given. With the NOREQ option, the COPY
  1011. command would be aborted and the script would continue.
  1012.  
  1013.  
  1014. Example 1:
  1015.  
  1016.     1> COPY File1 TO :Work/File2
  1017.  
  1018. copies File1 in the current directory to the File2 directory in the
  1019. Work directory.
  1020.  
  1021.  
  1022. Example 2 :
  1023.  
  1024.     1> COPY ~(#?.info) TO DF1:Backup
  1025.  
  1026. copies all the files not ending in .info in the current directory to
  1027. the Backup directory on the disk in DF1:. This is a convenient use of
  1028. pattern matching to save storage space when icons are not necessary.
  1029.  
  1030.  
  1031. Example 3:
  1032.  
  1033.     1> COPY Work:Test TO ""
  1034.  
  1035. copies the files in the Test directory on Work to the current
  1036. directory; subdirectories in Test will not be copied.
  1037.  
  1038.  
  1039. Example 4:
  1040.  
  1041.     1> COPY Work:Test TO DF0:Test ALL
  1042.  
  1043. copies all the files and any subdirectories of the Test directory on
  1044. Work to the Test directory on DF0:. If a Test directory does not
  1045. already exist on DF0:, AmigaDOS will create one.
  1046.  
  1047.  
  1048. Example 5 :
  1049.  
  1050.     1> COPY DF0: TO DF1: ALL QUIET
  1051.  
  1052. copies all files and directories on the disk in DF0: to DF1:, without
  1053. displaying on the screen any file/directory names as they are copied.
  1054. (This is quite slow in comparison to DiskCopy.)
  1055. CPU
  1056.  
  1057.  
  1058. Format:CPU [CACHE] [N0CACHE] [BURST] [NOBURST] [DATACACHE]
  1059. [DATABURST] [NODATACACHE] [NODATABURST] [INSTCACHE]
  1060. [INSTBURST] [NOINSTCACHE] [NOINSTBURST) [FASTROM]
  1061. [NOFASTROM] [NOMMUTEST] [CHECK
  1062. 68010|68020|68030|68040|68881|68882|68851|MMU|FPU]
  1063. [TRAP] [NOTRAP] [COPYBACK] [NOCOPYBACK]
  1064. [EXTERNALCACHE] [NOEXTERNALCACHE]
  1065. Template:CACHE/S, BURST/S, NOCACHE/S, NOBURST/S,
  1066. DATACACHE/S, DATABURST/S, NODATACACHE/S,
  1067. NODATABURST/S, INSTCACHE/S, INSTBUftST/S,
  1068. NOINSTCACHE/S, NOINSTBURST/S, COPYBACWS,
  1069. NOCOPYBACK/S, EXTERNALCACHE/S, NOEXTERNALCACHE/S,
  1070. FASTROM/S, NOFASTROM,S, TRAP/S, NOTRAP/S,
  1071. NOMMUTEST/S, CHECK/K
  1072. Purpose:To set or clear the CPU caches, check for a
  1073. particular processor, load the ROM image into fast,
  1074. 32-bit memory, or set an illegal memory access
  1075. handler which will output information over the
  1076. serial port at 9600 baud if a task accesses page
  1077. zero (lower 256 bytes) or memory above 16M on a
  1078. 68000 Amiga.
  1079. Path:            C:CPU
  1080. Specification:
  1081.  
  1082. CPU allows you to adjust various options of the microprocessor
  1083. installed in your Amiga. CPU will also show the processor and options
  1084. that are currently enabled.
  1085.  
  1086. Many options only work with certain members of the 680X0 processor
  1087. family. The 68020 has a special type of memory known as instruction
  1088. cache. When instruction cache is used, instructions are executed more
  1089. quickly. The 68030 has two types of cache memory: instruction and data.
  1090. The CPU options, outlined below, specify the types of memory to be
  1091. used. If mutually exclusive options are specified, the safest option is
  1092. used.
  1093.  
  1094. Availability of the options listed below depends on availability of
  1095. required hardware.
  1096.  
  1097. CACHE        Turns on all caches.
  1098. NOCACHE        Turns off all caches.
  1099. BURST        Turns on burst mode for both data and instructions.
  1100. NOBURST        Turns off burst mode for data and instructions.
  1101. DATACACHE        Turns on data cache.
  1102. NODATACACHE    Turns off data cache.
  1103. DATABURST        Turns on burst mode for data.
  1104. NODATABURST    Turns off burst mode for data.
  1105. INSTCACHE        Turns on instruction cache.
  1106. INSTBURST        Turns on burst mode for instruction.
  1107. NOINSTCACHE    Turns off instruction cache.
  1108. NOINSTBURST    Turns off burst mode for instructions.
  1109. FASTROMIf supported by the MMU, copies data from ROM into
  1110. 32-bit RAM, making access to this data significantly
  1111. faster. CPU then writeprotects the RAM area so that the
  1112. data cannot be changed.
  1113. NOFASTROM        Turns off FASTROM.
  1114. NOMMUTESTAllows the MMU settings to be changed without checking
  1115. to see if MMU is currently in use.
  1116. TRAP            Developer-specific.
  1117. NOTRAP        Developer-specific.
  1118. COPYBACK        Turns on cache copyback.
  1119. NOCOPYBACK    Turns off cache copyback.
  1120. EXTERNALCACHE    Turns on external cache.
  1121. NOEXTERNALCACHE Turns off external cache.
  1122.  
  1123.  
  1124. The CHECK option, when given with a keyword (68010, 68020, 68030,
  1125. 68040, 68881, 68882, or 68851, MMU, FPU) checks for the presence of the
  1126. keyword.
  1127.  
  1128.  
  1129. Examples:
  1130.  
  1131.     1>  CPU
  1132.     System: 68030 68881 (INST: Cache Burst) (DATA: Cache NoBurst)
  1133.  
  1134.     1> CPU NoDataCache FastROM
  1135.     System: 68030 68881 FastROM (INST: Cache Burst) DATA: NoCache
  1136.     NoBurst)
  1137.  
  1138.     1> CPU NoBurst DataCache NoInstCache
  1139.     System: 68030 68881 (INST: NoCache NoBurst) (DATA: Cache NoBurst )
  1140. CROSSDOS
  1141.  
  1142.  
  1143. Format:CROSSDOS [CX_PRIORITY <priority>] [CX_POPKEY <key>]
  1144. [CX_POPUP <yes|no>]
  1145. Template:   CX_PRIORITY/N/K, CX_POPKEY/K, CX_POPUP/K
  1146. Purpose:    To set text filter and conversion options.
  1147. Path:       Extras: Tools/Commodities/CrossDOS
  1148. Specification:
  1149.  
  1150. CROSSDOS lets you read from and write to MS-DOS formatted disks using
  1151. your standard Amiga drives. This makes it simple to transfer
  1152. information such as text, font, database, and graphics files between
  1153. Amiga and MS-DOS computers. Use the CROSSDOS command to set text filter
  1154. and conversion options during this transfer.
  1155.  
  1156. The Standard DOS drivers for CrossDOS are PC0: and PC1:, which
  1157. correspond to DF0: and DF1:. These two drivers allow an Amiga floppy
  1158. drive to read from and write to 720KB MS-DOS disks. CrossDOS drivers
  1159. still handle your Amiga disks normally.
  1160.  
  1161. CX_POPKEY allows you to specify the hot key for the program. If more
  1162. than one key is specified, be sure to enclose the entire argument in
  1163. double-quotes (i.e., CX_POPKEY="Shift F1").
  1164.  
  1165. CX_POPUP=no will prevent the CrossDOS window from opening. By default
  1166. the program window opens when the command is invoked.
  1167.  
  1168. CX_PRIORITY sets the priority of CrossDOS in relation to all other
  1169. Commodity Exchange programs. All the Commodity Exchange programs are
  1170. set to a default priority of 0.
  1171.  
  1172. For complete information on CrossDOS, see Using the Amiga Worhbench
  1173. manual.
  1174. DATE
  1175.  
  1176.  
  1177. Format:            DATE [<day>] [<date>] [<time>] [TO|VER<filename>]
  1178. Template:            DAY, DATE, TIME,TO=VER/K
  1179. Purpose:            To display or set the system date and/or time.
  1180. Path:            C:DATE
  1181. Specification:
  1182.  
  1183. DATE with no argument displays the currently set system time and date,
  1184. including the day of the week. Time is displayed using a 24-hour clock.
  1185.  
  1186. DATE <date> sets just the date. The format for <date> is DD-MMM-W
  1187. (day-month-year). The hyphens between the arguments are required. A
  1188. leading zero in the date is not necessary. The number or the first 3
  1189. letters of the month (in English) must be used, as well as the last two
  1190. digits of the year.
  1191.  
  1192. If the date is already set, you can reset it by specifying a day name
  1193. (this sets the date forward to that day of the week). You cannot
  1194. specify a day name to change the date to more than seven days into the
  1195. future. You can also use tomorrow or yesterday as the <day> argument.
  1196.  
  1197. DATE <time> sets the time. The format for <time> is HH:MM:SS
  1198. (hours:minutes:seconds). Seconds are optional.
  1199.  
  1200. If your Amiga does not have a battery backed-up hardware clock and you
  1201. do not set the date, the system, upon booting, will set the date to the
  1202. date of the most recently created file on the boot disk.
  1203.  
  1204. If you specify the TO or VER option, followed by a filename, the output
  1205. of the DATE command will be sent to that file, overwriting any existing
  1206. contents.
  1207.  
  1208. Adjustments made with DATE only change the software clock. They will
  1209. not survive past power-down. To set the battery back-up hardware clock
  1210. from the Shell, you must set the date then use SETCLOCK SAVE.
  1211.  
  1212.  
  1213. Example 1:
  1214.  
  1215.     1> DATE
  1216.  
  1217. displays the current date and time.
  1218.  
  1219.  
  1220. Example 2:
  1221.  
  1222.     1> DATE 6-sep-82
  1223.  
  1224. sets the date to September 6, 1982. The time is not reset.
  1225.  
  1226.  
  1227. Example 3:
  1228.  
  1229.     1> DATE tomorrow
  1230.  
  1231. resets the date to one day ahead.
  1232. Example 4:
  1233.  
  1234.     1> DATE TO Fred
  1235.  
  1236. sends the current date to the file Fred.
  1237.  
  1238.  
  1239. Example 5:
  1240.  
  1241.     1> DATE 23:00
  1242.  
  1243. sets the current time to 11:00 p.m.
  1244.  
  1245.  
  1246. Example 6:
  1247.  
  1248.     1> DATE 1-jan-02
  1249.  
  1250. sets the date to January lst, 2002. The earliest date you can set is
  1251. January 1, 1978.
  1252. DELETE
  1253.  
  1254.  
  1255. Format:            DELETE {<name|pattern>} [ALL] [QUIET] [FORCE]
  1256. Template:            FlLE/M/A, ALLL/S, QUlET/S, FORCE/S
  1257. Purpose:            To delete files or directories.
  1258. Path:            C:DELETE
  1259. Specification:
  1260.  
  1261. DELETE attempts to delete (erase) the specified files. If more than one
  1262. file was specified, AmigaDOS continues to the next file in the list.
  1263.  
  1264. You can use pattern matching to delete files. The pattern may specify  
  1265. directory levels as well as filenames. All files that match the pattern
  1266. are deleted. To abort a multiple-file DELETE, press Ctrl+C.
  1267.  
  1268. CautionAmigaDOS does not request confirmation of deletions. An error
  1269. in a pattern-matching DELETE can have severe consequences, as
  1270. deleted files are unrecoverable. Be sure you understand
  1271. pattern matching before you use this feature, and keep
  1272. backups of important files.
  1273.  
  1274. If you try to delete a directory that contains files, you will receive
  1275. a message stating that the directory could not be deleted as it is not
  1276. empty. To override this, use the ALL option. DELETE ALL deletes the
  1277. named directory, its subdirectories, and all files.
  1278.  
  1279. Filenames are displayed on the screen as they are deleted. To suppress
  1280. the screen output, use the QUIET option.
  1281.  
  1282. If the d (deletable) protection bit ofa file has been cleared, that
  1283. file cannot be deleted unless the FORCE option is used.
  1284.  
  1285.  
  1286. Example 1:
  1287.  
  1288.     1> DELETE Old-file
  1289.  
  1290. deletes the file named Old-file in the current directory.              
  1291.  
  1292.  
  1293. Example 2:
  1294.  
  1295.     1> DELETE Work/Prog1 Work/Prog2 Work
  1296.  
  1297. deletes the files Prog1 and Prog2 in the Work directory, and then
  1298. deletes the Work directory (if there are no other files left in it).
  1299.  
  1300.  
  1301. Example 3:
  1302.  
  1303.     1> DELETE T#?/#?(1|2)
  1304.  
  1305. deletes all the files that end in 1 or 2 in directories that start with
  1306. T.
  1307. Example 4:
  1308.  
  1309.     1> DELETE DF1:#? ALL FORCE
  1310.  
  1311. deletes all the files on DF1:, even those set as not deletable.
  1312. See also: PROTECT
  1313. DIR
  1314.  
  1315.  
  1316. Format:DIR [<dir|pattern>] [OPT A|I|AI|D|F] [ALL] [DIRS]
  1317. [FILES] [INTER]
  1318. Template:            DIR, OPT/K, ALL/S, DIRS/S, FILES/S, INTER/S
  1319. Purpose:To display a sorted list ofthe files in a
  1320. directory.
  1321. Path:            C:DIR
  1322. Specification:
  1323.  
  1324. DIR displays the file and directory names contained in the specified
  1325. directory or the current directory. If no name is given, directories
  1326. are listed first, followed by an alphabetical list of the files in two
  1327. columns. Pressing Ctrl+C aborts a directory listing.
  1328.  
  1329. The options are:
  1330. ALL        Displays all subdirectories and their files.
  1331. DIRS        Displays only directories.
  1332. FILES    Displays only files.
  1333. INTER    Enters an interactive listing mode.
  1334.  
  1335. The ALL, DIRS, FILES and INTER keywords supersede the OPT A, D, F and I
  1336. options, respectively. The older keywords are retained for
  1337. compatibility with earlier versions of AmigaDOS. Do not use OPT with
  1338. the full keywords - ALL, DIRS, FILES, or INTER.
  1339.  
  1340. The interactive listing mode stops after each name and displays a
  1341. question mark at which you can enter commands. The acceptable responses
  1342. are shown below:
  1343.  
  1344. Return        Displays the next name on the list.
  1345. E        Enters a directory; the files in that directory will be
  1346. displayed.
  1347. B            Goes back one directory level.
  1348. DEL or DELETEDeletes a file or empty directory. DEL does not refer to
  1349. the Del key; enter the letters D, E, and L.
  1350. T            Types the contents of a file.
  1351. C or COMMAND    Allows you to enter additional AmigaDOS commands.
  1352. Q            Quits interactive editing.
  1353. ?        Displays a list of the available interactive-mod
  1354. commands.
  1355.  
  1356. The COMMAND option allows almost any AmigaDOS command to be executed
  1357. during the interactive directory list. When you want to issue a
  1358. command, enter C (or COMMAND) at the question mark prompt. DIR will ask
  1359. you for the command. Enter the desired command, then press Return. The
  1360. command will be executed and DIR will continue. You can also combine
  1361. the C and the command on one line, by putting the command in quotes
  1362. following the C.
  1363.  
  1364.  
  1365. For example,
  1366.  
  1367.     1>? C "type prefs.info hex"
  1368.  
  1369. is equivalent to pressing Q to exit interactive listing mode and return
  1370. to a regular Shell prompt, and entering:
  1371. 1> TYPE Prefs.info HEX
  1372.  
  1373. The Prefs.info file would be typed to the screen in hexadecimal format.
  1374.  
  1375. It is dangerous to format a disk from the DIR interactive mode, as the
  1376. format will take place immediately, without any confirmation requesters
  1377. appearing. Also, starting another interactive DIR from interactive mode
  1378. will result in garbled output.
  1379.  
  1380.  
  1381. Example 1:
  1382.  
  1383.     1> DIR Workbench:
  1384.  
  1385. displays a list of the directories and files on the Workbench disk.
  1386.  
  1387.  
  1388. Example 2:
  1389.  
  1390.     1> DIR MyDisk:#?.memo
  1391.  
  1392. displays all the directories and files on MyDisk that end in .memo.
  1393.  
  1394.  
  1395. Example 3:
  1396.  
  1397.     1> DIR Extras: ALL
  1398.  
  1399. displays the complete contents of the Extras disk-all directories, all
  1400. subdirectories and all files, including those in the subdirectories.
  1401.  
  1402.  
  1403. Example 4:
  1404.  
  1405.     1> DIR Workbench: DIRS
  1406.  
  1407. displays only the directories on Workbench.
  1408.  
  1409.  
  1410. Example 5:
  1411.  
  1412.     1> DIR Workbench: INTER
  1413.  
  1414. provides an interactive list ofthe contents of the Workhench disk.
  1415. DISKCHANGE
  1416.  
  1417.  
  1418. Format:            DISKCHANGE <device>
  1419. Template:            DRlVE/A
  1420. Purpose:        To inform the Amiga that you have changed a disk in
  1421. a disk drive.
  1422. Path:            C:DlSKCHANGE
  1423. Specification:
  1424.  
  1425. The DISKCHANGE command is only necessary when you are using 5.25 inch
  1426. floppy disk drives or removable media drives without automatic
  1427. diskchange hardware. Whenever you change the disk or cartridge of such
  1428. a drive, you must use DISKCHANGE to inform the system of the switch.
  1429.  
  1430. Example:
  1431.  
  1432. If a requester appears and asks you to insert a new disk into your 5.25
  1433. inch drive, known as DF2:, you must insert the disk, then enter:
  1434.  
  1435.     1> DISKCHANGE DF2:
  1436.  
  1437. AmigaDOS will then recognize the new disk, and you can proceed.
  1438. DISKCOPY
  1439.  
  1440.  
  1441. Format:        DISKCOPY [FROM] <device> TO <device> [NAME <name>]
  1442. [NOVERIFY] [MULTI]
  1443. Template:            FROM/A, TO/A, NAME/K, NOVERIFY/S, MULTI/S,
  1444. Purpose:            To copy the contents of one disk to another.
  1445. Path:            SYS:System/DiskCopy
  1446. Specification:
  1447.  
  1448. The DISKCOPY command copies the entire contents of one volume to
  1449. another.
  1450.  
  1451. The <device> parameters specify the name of the disk devices to copy
  1452. from and to copy to, for example, DF0: or DF1:.
  1453.  
  1454. A floppy disk containing an altered icon can be displayed from the
  1455. Workbench by removing the disk from the drive and reinserting it.
  1456.  
  1457. By default, the destination disk will have the same name as the source
  1458. disk. If you specify the NAME option, you can give the destination disk
  1459. a different name from the source disk.
  1460.  
  1461. Normally during a DISKCOPY, the Amiga copies and verifies each cylinder
  1462. of data. The NOVERIFY option allows you to skip the verification
  1463. process, making the copy faster.
  1464.  
  1465. The MULTI option loads the data on the source disk into memory,
  1466. allowing you to make multiple copies without having to read the data
  1467. from the source disk each time.
  1468.  
  1469.  
  1470. Example 1:
  1471.  
  1472.     1> DISKCOPY DF0: to DF2:
  1473.  
  1474. copies the contents of the disk in drive DF0: to the disk in drive DF2:
  1475. overwriting the contents of the disk in drive DF2:
  1476.  
  1477.  
  1478. Example 2:
  1479.  
  1480.     1> DISKCOPY DF0: to DF2: NAME NewDisk NOVERIFY
  1481.  
  1482. copies the contents of the disk in drive DF0: to the disk in drive DF2:
  1483. and gives the disk in drive DF2: the name NewDisk. The disk will not be
  1484. verified as it is copied.
  1485. DISPLAY
  1486.  
  1487.  
  1488. Format:        DISPLAY {<filename>|FROM <filelist>} [OPT mlbpaenv
  1489. t=<n>]
  1490. Template:            FILENAME/A/M, FROM/K, OPT/K, T/N
  1491. Purpose:            To display graphics saved in IFF ILBM format.
  1492. Path:            SYS:Utilities/Display
  1493. Specification:
  1494.  
  1495. DISPLAY displays graphics saved using the IFF ILBM format. You can
  1496. enter a series of files on the command line, and they will be shown in
  1497. the order given. You can also create a script containing a list of all
  1498. the IFF files you'd like to display and use the FROM <filelist>
  1499. argument.
  1500.  
  1501. The options are listed below. Remember, the OPT keyword must be
  1502. used.
  1503. mClicking the selection button displays the next file in the
  1504. filelist; clicking the menu button displays the previous file.
  1505. lInstead of exiting after the last picture, DISPLAY will return to
  1506. the first file and start again.
  1507. bPictures stay on their own unactivated screen behind the Workbench
  1508. screen. This is useful when printing pictures while doing
  1509. something else.
  1510. pPrints each file that is displayed. You can also press Ctrl+P
  1511. while the file is on the screen.
  1512. aPictures that are larger than the display area will scroll
  1513. automatically when the pointer is moved to the edge of the screen.
  1514. eThis option tells Display that the picture is in Extra Halfbrite
  1515. mode. This is for users who may be using an early HAM paint
  1516. package that does not save a CAMG chunk. Normally, if there is no
  1517. CAMG, DISPLAY will treat the image as a HAM picture. A CAMG chunk
  1518. is part of an IFF file that describes in which viewmode the
  1519. picture should be displayed.
  1520. n    Borders will not be transparent when genlocked.
  1521. vPictures will be displayed with full-video display clip. This
  1522. means that the picture will fill the maximum possible position on
  1523. the right edge of the screen, going a little beyond the Overscan
  1524. settings in Preferences. However, when using this option, the
  1525. screen cannot be dragged sideways, and DISPLAY cannot center the
  1526. picture.
  1527.  
  1528. The t=<n> argument specifies the number of seconds the IFF file will be
  1529. displayed. This allows for automatic advancing through files.
  1530.  
  1531.  
  1532. Example 1:
  1533.  
  1534.     1> DISPLAY file1 file2 file3
  1535.  
  1536. displays the fles in the order given. To advance from one file to the
  1537. next, press Ctrl+C.
  1538. Example 2 :
  1539.  
  1540.     1> DISPLAY FROM Scriptlist
  1541.  
  1542. displays the files listed in the Scriptlist file. Pressing Ctrl+C wi11
  1543. advance to the next file.
  1544.  
  1545.  
  1546. Example 3 :
  1547.  
  1548.     1> DISPLAY FROM Scriptlist OPT mp
  1549.  
  1550. displays the files listed in the Scriptlist file. Clicking the
  1551. selection button advances to the next file in the list. Clicking the
  1552. menu button displays the previous file. Each file is printed as it is
  1553. displayed.
  1554.  
  1555.  
  1556. Example 4:
  1557.  
  1558.     1> DISPLAY FROM Scriptlist OPT t=5
  1559.  
  1560. displays each file in the Scriptlist file for five seconds. DISPLAY is
  1561. replaced by MultiView in Workbench 3.0 level software.
  1562. ECHO
  1563.  
  1564.  
  1565. Format:            ECHO [<string>] [NOLINE] [FlRST <n>] [LEN <n>]
  1566. Template:            /M, NOLlNE/S, FlRST/K/N, LEN/K/N, TO/K
  1567. Purpose:            To display a string.
  1568. Path:            Internal
  1569. Specification:
  1570.             
  1571. ECHO writes the specified string to the current output window or
  1572. device. By default this is the screen, but it could be to any device or
  1573. file. When the string contains spaces, the whole string must be
  1574. enclosed in double quotes. (ECHO is commonly used in scripts.)
  1575.  
  1576. When the NOLINE option is specified, ECHO does not automatically move
  1577. the cursor to the next line after printing the string.
  1578.  
  1579. The FIRST and LEN options allow the echoing of a substring. FIRST <n>
  1580. indicates the character position from which to begin the echo; LEN <n>
  1581. indicates the number of characters of the substring to echo, beginning
  1582. with the first character. If the FIRST option is omitted and only the
  1583. LEN keyword is given, the substring printed will consist of the
  1584. rightmost <n> characters of the main string. For example, if your
  1585. string is 20 characters long and you specify LEN 4, the 17th, 18th,
  1586. 19th, and 20th characters of the string will be echoed.
  1587.  
  1588.  
  1589. Examples:
  1590.  
  1591.     1> ECHO "hello out there!"
  1592.     hello out there!
  1593.  
  1594.     1>  ECHO  "hello out there!"   NOLINE FIRST 0 LEN 5
  1595.     hello1>
  1596. ED
  1597.  
  1598.  
  1599. Format:        ED [FROM] <filename> [SIZE <n>] [WITH <filename>]
  1600. [WINDOW] [TABS <n>] [WIDTH <n>] [HEIGHT <n>]
  1601. Template:        FROM/A, SIZE/N, WITH/K, WINDOW/K, TABS/N,
  1602. WIDTH=COLS/N, HEIGHT=ROWS/N
  1603. Purpose:            To edit text files (a screen editor).              
  1604. Path:            C:ED
  1605. Specification:
  1606.  
  1607. See Chapter 6, "Editors."
  1608. EDIT
  1609.  
  1610.  
  1611. Format:        EDIT [FROM] <filename> [[TO] <filename>] [WITH
  1612. <filename>] [VER <fllename>] [[OPT P <lines>|W
  1613. <chars>]|[PREVIOUS <lines>|WIDTH <chars>]]
  1614. Template:        FROM/A, TO, WITH/K, VER/K, OPT/K, WIDTH/N,
  1615. PREVIOUS/N
  1616. Purpose:        To edit text files by processing the source file
  1617. sequentially (a line editor).
  1618. Path:            C:EDlT
  1619. Specification:
  1620.  
  1621. See Chapter 6, "Editors."
  1622. ELSE
  1623.  
  1624.  
  1625. Format:            ELSE
  1626. Template:            (none)
  1627. Purpose:        To specify an alternative for an IF statement in a
  1628. script file.
  1629. Path:            Internal
  1630. Specification:
  1631.  
  1632. ELSE is used in an IF block of a script to specify an alternative
  1633. action in case the IF condition is not true. If the IF condition is not
  1634. true, execution of the script will jump from the IF line to the line
  1635. after ELSE; all intervening commands will be skipped. If the IF
  1636. condition is true, the commands immediately following the IF statement
  1637. are executed up to the ELSE. Then, execution skips to the ENDIF
  1638. statement that concludes the IF block.
  1639.  
  1640.  
  1641. Example:                                                           
  1642. Assume a script, called Display, contained the following block:
  1643.  
  1644.     IF exists <name>
  1645.         TYPE  <name>  NUMBER
  1646.     ELSE
  1647.         ECHO "<name> is not in this directory"
  1648.     ENDIF
  1649.  
  1650. To execute this script, you could enter:
  1651.  
  1652.     1> EXECUTE Display work/prg2
  1653.  
  1654. If the work/prg2 file can be found in the current directory, the TYPE
  1655. <name> NUMBER command will be executed. The work/prg2 file will be
  1656. displayed on the screen with line numbers.
  1657.  
  1658. If the work/prg2 file cannot be found in the current directory, the
  1659. script will skip ahead to the ECHO "<name> is not in this directory"
  1660. coommand. The message:
  1661.  
  1662.     work/prg2 is not in this directory
  1663.  
  1664. will be displayed in the Shell window.
  1665.  
  1666.  
  1667. See also: IF, ENDIF, EXECUTE
  1668. ENDCLI
  1669.  
  1670.  
  1671. Format:            ENDCLI
  1672. Template:            (none)
  1673. Purpose:            To end a Shell process.
  1674. Path:            Internal
  1675. Specification:
  1676.  
  1677. ENDCLI ends a Shell process.
  1678.  
  1679.  
  1680. See also: ENDSHELL
  1681. ENDIF
  1682.  
  1683.  
  1684. Format:            ENDIF
  1685. Template:            (none)
  1686. Purpose:            To terminate an IF block in a script file.
  1687. Path:            Interna1
  1688. Specification:
  1689.  
  1690. ENDIF is used in scripts at the end of an IF block. If the IF condition
  1691. is not true, or if the true-condition commands were executed and an
  1692. ELSE has been encountered, the execution of the script will skip to the
  1693. next ENDIF command. Every IF statement must be terminated by an ENDIF.
  1694.  
  1695. The ENDIF applies to the most recent IF or ELSE command.
  1696.  
  1697.  
  1698. See also: IF, ELSE
  1699. ENDSHELL
  1700.  
  1701.  
  1702. Format:            ENDSHELL
  1703. Template:            (none)
  1704. Purpose:            To end a Shell process.
  1705. Path:            Internal
  1706. Specification:
  1707.  
  1708. ENDSHELL ends a Shell process.
  1709.  
  1710. The Shell process can also be ended by ENDCLI or clicking on the Close
  1711. gadget.
  1712.  
  1713. ENDSHELL should only be used when the Workbench is loaded or another
  1714. Shell is running. If you have quit the Workbench and you close your
  1715. only Shell, you will be unable to communicate with the Amiga. Your only
  1716. recourse will be to reboot.
  1717.  
  1718. The Shell window may not close if any processes that were launched from
  1719. the Shell are still running. Even though the window stays open, the
  1720. Shell will not accept new input. You must terminate those processes
  1721. before the window will close. For example, if you opened an editor from
  1722. the Shell, the Shell window will not close until you exit the editor.
  1723. ENDSKIP
  1724.  
  1725.  
  1726. Format:            ENDSKIP
  1727. Template:            (none)
  1728. Purpose:            To terminate a SKIP block in a script file.
  1729. Path:            Internal
  1730. Specification:
  1731.  
  1732. ENDSKIP is used in scripts to terminate the execution of a SKIP block.
  1733. A SKIP block allows you to jump over intervening commands if a certain
  1734. condition is met. When an ENDSKIP is encountered execution of the
  1735. script resumes at the line following the ENDSKIP. The condition flag is
  1736. set to 5 (WARN).
  1737.  
  1738.  
  1739. See also: SKIP
  1740. EVAL
  1741.  
  1742.  
  1743. Format:        EVAL <value1> {[<operation>] [<value2>]} [TO<file>]
  1744. [LFORMAT=<string>]
  1745. Template:            VALUE1/A, OP, VALUE2/M, TO/K, LFORMAT/K
  1746. Purpose:            To evaluate simple expressions.
  1747. Path:            C:EVAL
  1748. Specification:
  1749.  
  1750. EVAL is used to evaluate and print the answer of an integer expression.
  1751. The fractional portion of input values and final results, if any, are
  1752. truncated (cut off). Decimals are not allowed, evaluation stops at the
  1753. decimal point.
  1754.  
  1755. <Value1> and <value2> may be decimal, hexadecimal, or octal numbers.
  1756. Decimal numbers are the default. Hexadecimal numbers are indicated by
  1757. either a leading 0x or #x. Octal numbers are indicated by either a
  1758. leading 0 or a leading #. Alphabetical characters are indicated by a
  1759. leading single quote (').
  1760.  
  1761. The output format defaults to decimal; however, you can use the LFORMAT
  1762. keyword to select another format. The LFORMAT keyword specifies the
  1763. formatting string used to print the answer. You may use %X
  1764. (hexadecimal), %O (octal), %N (decimal), or %C (character). The %X and
  1765. %O options require a number of digits specifcation (i.e., %X8 gives 8
  1766. digits of hex output). When using the LFORMAT keyword, you can specify
  1767. that a new line should be printed by including a *N in your string.
  1768.  
  1769. The supported operations and their corresponding symbols are shown
  1770. below:
  1771.  
  1772. Operation                Symbol
  1773. ---------                ------
  1774. addition                +
  1775. subtraction            -
  1776. multiplication            *
  1777. division                /
  1778. modulo                mod
  1779. AND                    &
  1780. OR                    |
  1781. NOT                    ~
  1782. left shift            lsh
  1783. right shift            rsh
  1784. negation                -
  1785. exclusive OR            xor
  1786. bitwise equivalence        eqv
  1787.  
  1788. EVAL can be used in scripts to act as a counter for loops. In that
  1789. case, the TO option, which sends the output of EVAL to a file, is very
  1790. useful.
  1791.  
  1792. Parentheses may be used in the expressions.
  1793.  
  1794. Example 1:
  1795.  
  1796.     1> EVAL 64 / 8 + 2
  1797.     10
  1798. Example 2:
  1799.  
  1800.  
  1801.     1> EVAL 0x5f / 010 LFORMAT="The answer is %X4*N"
  1802.     The answer is 000B
  1803.  
  1804. This divides hexadecimal 5f(95) by octal 10(8), yielding 000B, the
  1805. integer portion ofthe decimal answer 11.875. (The 1> prompt would have
  1806. appeared immediately after the 000B if *N had not been specified in the
  1807. LFORMAT string.)
  1808.  
  1809.  
  1810. Example 3 :
  1811. Assume you were using the following script, called Loop:
  1812.  
  1813.     Key loop/a
  1814.     ;demo a loop using eval and skip
  1815.     .Bra {
  1816.     .Ket }
  1817.     ECHO >ENV:Loop {loop}
  1818.     LAB start
  1819.     ECHO "Loop #" noline
  1820.     TYPE  ENV:Loop
  1821.     EVAL <ENV:Loop >NlL: to=T:Qwe{$$} value2=1 op=- ?
  1822.     TYPE >ENV:Loop T:Qwe{$$}
  1823.     IF val $loop GT 0
  1824.     SKIP start back
  1825.     ENDIF
  1826.     DELETE ENV:Loop T:Qwe{$$} ; clean up
  1827.     ECHO  "done"
  1828.  
  1829. If you were to enter:
  1830.  
  1831.     1> EXECUTE Loop 5
  1832.  
  1833. the following results would be displayed:
  1834.  
  1835.  
  1836.     1> EXECUTE Loop 5
  1837.     Loop #5
  1838.     Loop #4
  1839.     Loop #3
  1840.     Loop #2
  1841.     Loop #1
  1842.     done
  1843.  
  1844. The first ECHO command sends the number given as the loop argument,
  1845. entered as an argument of the EXECUTE command, to the ENV:Loop file.
  1846.  
  1847. The second ECHO command coupled with the TYPE command, displays Loop #
  1848. followed by the number given as the loop argument. In this case, it
  1849. displays Loop #5.
  1850.  
  1851. The EVAL command takes the number in the ENV:Loop file as <value1>,
  1852. which makes the question mark at the end of the line necessary.
  1853. <Value2> is 1, and the operation is subtraction. The output of the EVAL
  1854. command is sent to the T:Qwe{$$} case, the value would be 4.
  1855. The next IF command sends the value in the T:Qwe{$$} file to the
  1856. ENV:Loop file. In this case, it changes the value in ENV:Loop from 5 to
  1857. 4.
  1858.  
  1859. The IF statement states that as long as the value for Loop is greater
  1860. than 0, the script should start over. This results in the next line
  1861. being Loop #4.
  1862.  
  1863. The script will continue until Loop is equal to 0.
  1864. EXCHANGE
  1865.  
  1866.  
  1867. Format:        EXCHANGE [CX_POPKEY<key>] [CX_POPUP<yes|no>]
  1868. [CX_PRlORlTY <Priority>]
  1869. Template:        CX_PRIORITY/N/K, CX_POPKEY/K, CX_POPUP/K
  1870. Purpose:        To monitor and control the Commodity Exchange
  1871. programs.
  1872. Path:            Extras:Tools/Commodities/Exchange
  1873. Specification:
  1874.  
  1875. EXCHANGE is a Commodity Exchange program that monitors and controls all
  1876. the other Commodity Exchange programs. CX_POPKEY allows you to specify
  1877. the hot key for the program. If more than one key is specified, be sure
  1878. to enclose the entire argument in double-quotes (i.e., CX_POPKEY Shift
  1879. F1").
  1880.  
  1881. CX_POPUP will keep the Exchange window from opening.
  1882.  
  1883. CX_PRIORITY sets the priority of Exchange in relation to all the other
  1884. Commodity Exchange programs. All the Commodity Exchange programs are
  1885. set to a default priority of 0. To exit EXCHANGE once it has been
  1886. started from the Shell, press Ctrl+C or use the BREAK command.
  1887.  
  1888.  
  1889. Example:
  1890.  
  1891.     1> EXCHANGE CX_POPKEY "Shift F1"
  1892.  
  1893. The Exchange program will be started and its window will appear on the
  1894. screen. If you Hide the window, then want to bring it back again, the
  1895. hot key combination is Shift+F1.
  1896. EXECUTE
  1897.  
  1898.  
  1899. Format:            EXECUTE <script> [{<arguments>}]
  1900. Template:            FILE/A
  1901. Purpose:        To execute a script with optional argument
  1902. substitution.
  1903. Path:            C:EXECUTE
  1904. Specification:
  1905.  
  1906. EXECUTE is used to run scripts of AmigaDOS commands. The lines in the
  1907. script are executed just as if they had been entered at a Shell prompt.
  1908. If the s protection bit of a file is set and the file is in the search
  1909. path, you only need to enter the filename - the EXECUTE command is not
  1910. needed.
  1911.  
  1912. You can use parameter substitution in scripts by including special
  1913. keywords in the script. When these keywords are used, you can pass
  1914. variables to the script by including the variable in the EXECUTE
  1915. command line. Before the script is executed, AmigaDOS checks the
  1916. parameter names in the script against any arguments given on the
  1917. command line. If any match, AmigaDOS substitutes the values you
  1918. specified on the command line for the parameter name in the script. You
  1919. can also specify default values for AmigaDOS to use if no variables are
  1920. given. If you have not specifed a variable, and there is no default
  1921. specified in the script, then the value of the parameter is empty (no
  1922. substitution is made).
  1923.  
  1924. The permissible keywords for parameter substitution are explained
  1925. below. Each keyword must be prefaced with a dot character (.).
  1926.  
  1927. The .KEY (or .K) keyword specifies both keyword names and positions in
  1928. a script. It tells EXECUTE how many parameters to expect and how to
  1929. interpret them. In other words, .KEY serves as a template for the
  1930. parameter values you specify. Only one .KEY statement is allowed per
  1931. script. If present, it should be the first line in the file.
  1932.  
  1933. The arguments on the .KEY line can be given with the /A and /K
  1934. directives, which work the same as in an AmigaDOS template. Arguments
  1935. followed by /A are required; arguments followed by /K require the name
  1936. of that argument as a keyword. For example, if a script starts with
  1937. .KEY filename/A it indicates that a filename must be given on the
  1938. EXECUTE command line after the name of the script. This filename will
  1939. be substituted in subsequent lines of the script. For example, if the
  1940. first line of a script is:
  1941.  
  1942.     .KEY filename/A, TO/K
  1943.  
  1944. you must specify a filename variable. The TO variable is optional, but
  1945. if specified the TO keyword must be used. For example:
  1946.  
  1947.     1> EXECUTE Script Textfile TO NewFile
  1948. Before execution, AmigaDOS scans the script for any items enclosed by
  1949. BRA and KET characters (< and >). Such items may consist of a keyword
  1950. or a keyword and a default value. Wherever EXECUTE finds a keyword
  1951. enclosed in angle brackets, it tries to substitute a parameter.
  1952. However, if you want to use a string in your script file that contains
  1953. angle brackets, you will have to defne substitute "bracket" characters
  1954. with the .BRA and .KET commands. .BRA <ch> changes the opening bracket
  1955. character to <ch>, while .KET <ch> changes the closing bracket
  1956. character to <ch>. For example:
  1957.  
  1958.     .KEY filename
  1959.     ECHO "This line does NOT print <angle> brackets."
  1960.     .BRA {
  1961.     .KET }
  1962.     ECHO "This line DOES print <angle> brackets."
  1963.     ECHO "The specified filename is {filename}.'
  1964.  
  1965. would result in the following output:
  1966.  
  1967.     1> EXECUTE script TestFile
  1968.     This line does NOT print brackets.
  1969.     This line DOES print <angle> brackets.
  1970.     The specified filename is TestFile.
  1971.  
  1972. The first ECHO statement causes AmigaDOS to look for a variable to
  1973. substitute for the <angle> parameter. If no argument was given on the
  1974. EXECUTE command line, the null string is substituted. The .BRA and .KET
  1975. commands then tell the script to use braces to enclose parameters. So,
  1976. when the second ECHO statement is executed, the angle brackets will be
  1977. printed. The third ECHO statement illustrates that the braces now
  1978. function as the bracket characters.
  1979.  
  1980. When enclosing a keyword in bracket characters, you can also specify a
  1981. default string to be used if a variable is not supplied on the command
  1982. line. There are two ways to specify a default. The first way requires
  1983. that you specify the default every time you reference a parameter. You
  1984. must separate the two strings with a dollar sign ($).
  1985.  
  1986. For example, in the following statement:
  1987.  
  1988.     ECHO "<word1$defword1> is the default for Word1."
  1989.  
  1990. defword1 is the default value specified for word1. It will be printed
  1991. if no other variable is given for word1. However, if you want to
  1992. specify this default several times in your script, you would have to
  1993. use <word1$defword1> each time.
  1994.  
  1995. The .DOLLAR <ch> command allows you to change the default character
  1996. from $ to <ch>. (You can also use .DOL <ch>.) For example:
  1997.  
  1998.     .DOL #
  1999.     ECHO "<word1#defword1> is the default for Word1."
  2000.  
  2001. The second way to define a default uses the .DEF command. This allows
  2002. you to specify a default for each specific keyword. For example:
  2003.  
  2004.     .DEF word1 "defword1"
  2005. assigns defword1 as the default for the word1 parameter throughout the
  2006. script. The following statement:
  2007.  
  2008.     ECHO "<word1> is the default for Word1."
  2009.  
  2010. results in the same output as the previous ECHO statement:
  2011.  
  2012.     defword1 is the default for Word1.
  2013.  
  2014. You can embed comments in a script by including them after a semicolon
  2015. (;) or by entering a dot (.), followed by a space, then the comment.
  2016.  
  2017. .KEY                Argument template used to specify the format
  2018. of arguments; may be abbreviated to .K
  2019. .DOT <ch>                Change dot character from . to <ch>
  2020. .BRA <ch>            Change opening "bracket" character from < to
  2021. <ch>
  2022. .KET <ch>            Change closing "bracket" character from > to
  2023. <ch>
  2024. .DOLLAR <ch>        Change default character from $ to <ch>; may
  2025. be abbreviated to .DOL
  2026. .DEF <keyword> <value>    Give default to parameter
  2027. .<space>                Comment line
  2028. .\                    Blank comment line
  2029.  
  2030. When you EXECUTE a command line, AmigaDOS looks at the first line of
  2031. the script. If it starts with a dot command, AmigaDOS scans the script
  2032. looking for parameter substitution and builds a temporary file in the
  2033. T: directory. If the file does not start with a dot command, AmigaDOS
  2034. assumes that no parameter substitution is necessary and starts
  2035. executing the file immediately without copying it to T:. Ifyou do not
  2036. need parameter substitution, do not use dot commands as they require
  2037. extra disk accesses and increase execution time.
  2038.  
  2039. AmigaDOS provides a number of commands that are useful in scripts, such
  2040. as IF, ELSE, SKIP, LAB, and QUIT. These commands, as well as the
  2041. EXECUTE command, can be nested in a script. That is, a script can
  2042. contain EXECUTE commands.
  2043.  
  2044. To stop the execution of a script, press Ctrl+D. If you have nested
  2045. script files, you can stop the set of EXECUTE commands by pressing
  2046. Ctrl+C. Ctrl+D only stops the current script from executing.
  2047.  
  2048. The current Shell number can be referenced by the characters <$$>. This
  2049. is useful in creating unique temporary files, logical assignments, and
  2050. PIPE names.
  2051.  
  2052.  
  2053. Example 1:
  2054. Assume the script List contains the following:
  2055.  
  2056.     .K filename
  2057.     RUN COPY <filename> TO PRT: +
  2058.     ECHO "Printing of <filename> done"
  2059. The following command:
  2060.  
  2061.     1> EXECUTE List Test/Prg
  2062.  
  2063. acts as though you had entered the following commands at the keyboard:
  2064.  
  2065.     1> RUN COPY Test/Prg TO PRT: +
  2066.     1> ECHO "Printing of Test/Prg done"
  2067.  
  2068.  
  2069. Example 2:
  2070. Another example, Display, uses more of the features described above:
  2071.  
  2072.     .Key name/A
  2073.     IF EXISTS <name>
  2074.     TYPE <name> NUMBER    ;if file is in the given directory
  2075.                     ;type it with line numbers
  2076.     ELSE
  2077.     ECHO "<name> is not in this directory"
  2078.     ENDIF
  2079.  
  2080. The command:
  2081.  
  2082.     1> RUN EXECUTE Display Work/Prg2
  2083.  
  2084. should display the Work/Prg2 file, with line numbers on the screen, if
  2085. it exists on the current directory. If the file is not there, the
  2086. screen displays an error message. Because of the /A, if a filename is
  2087. not given on the command line after Display, an error will occur.
  2088.  
  2089.  
  2090. See also: IF, SKIP, FAILAT, LAB, ECHO, RUN, QUIT
  2091. FAILAT
  2092.  
  2093.  
  2094. Format:            FAILAT [<n>]
  2095. Template:            RCLIM/N
  2096. Purpose:        To instruct a command sequence to fail if a program
  2097. gives a return code greater than or equal to the
  2098. given value.
  2099. Path:            Internal
  2100. Specification:
  2101.  
  2102. Commands indicate that they have failed in some way by setting a return
  2103. code. A nonzero return code indicates that the command has encountered
  2104. an error of some sort. The return code, normally 5, 10, or 20,
  2105. indicates how serious the error was. A return code greater than or
  2106. equal to a certain limit, the fail limit, terminates a sequence of
  2107. non-interactive commands (commands you specify after RUN or in a
  2108. script).
  2109.  
  2110. You may use the FAILAT command to alter the fail limit RCLIM (Return
  2111. Code Limit) from its initial value of 10. If you increase the limit,
  2112. you indicate that certain classes of error should not be regarded as
  2113. fatal and that execution of subsequent commands may proceed after an
  2114. error. The argument must be a positive number. The fail limit is reset
  2115. to the initial value of 10 on exit from the command sequence.
  2116.  
  2117. If the argument is omitted, the current fail limit is displayed.
  2118.  
  2119. Example:
  2120. Assume a script contains the following lines:
  2121.  
  2122.     COPY DF0:MyFile to RAM:
  2123.     ECHO "MyFile being copied."
  2124.  
  2125. If MyFile cannot be found, the script will be aborted and the following
  2126. message will appear in the Shell window:
  2127.  
  2128.     COPY: object not found
  2129.     COPY failed returncode 20:
  2130.  
  2131. However, if you changed the return code limit to higher than 20, the
  2132. script would continue even if the COPY command fails. For example, if
  2133. you changed the script to read:
  2134.  
  2135.     FAILAT 21
  2136.     COPY DF0:MyFile to RAM:
  2137.     ECHO "MyFile being copied."
  2138.  
  2139. even if MyFile cannot be found, the script will continue. The following
  2140. message will appear in the Shell window:
  2141.  
  2142.     COPY: object not found
  2143.     MyFile being copied.
  2144.  
  2145.  
  2146. See also: ECHO, EXECUTE
  2147. FAULT
  2148.  
  2149.  
  2150. Format:            FAULT {error number}
  2151. Template:            /N/M
  2152. Purpose:        To print the messages(s) for the specified error
  2153. code(s).
  2154. Path:            Internal
  2155. Specification:
  2156.  
  2157. FAULT prints the messages corresponding to the error numbers supplied.
  2158. Any number of error numbers can be specified at once. If several error
  2159. numbers are given with FAULT, they must be separated by spaces.
  2160.  
  2161. Example:
  2162. If you received the error message:
  2163.  
  2164.     Error when opening DF1:TestFile 205
  2165.  
  2166. and needed more information, you would enter:
  2167.  
  2168.     1> FAULT 205
  2169.     FAULT 205: object not found
  2170.  
  2171. This tells you that the error occurred because TestFile could not be
  2172. found on DF1:.
  2173.  
  2174. A complete list of error messages appears in Appendix A.
  2175. FILENOTE
  2176.  
  2177.  
  2178. Format:        FILENOTE [FlLE] <file|pattern> [COMMENT <comment>]
  2179. [ALL] [QUlET]
  2180. Template:            FlLE/A,COMMENT,ALL/S,QUlET/S
  2181. Purpose:            To attach a comment to a file.
  2182. Path:            C:FlLENOTE
  2183. Specification:
  2184.  
  2185. FILENOTE attaches an optional comment of up to 79 characters to the
  2186. specified file or to all files matching the given pattern. If the
  2187. <comment> includes spaces, it must be enclosed in double quotes. To
  2188. include double quotes in a filenote, each literal quote mark must be
  2189. immediately preceded by an asterisk (*), and the entire comment must be
  2190. enclosed in quotes, regardless of whether the comment contains any
  2191. spaces.
  2192.  
  2193. If the <comment> argument is omitted, any existing filenote will be
  2194. deleted from the named file.
  2195.  
  2196. Creating a comment with FILENOTE is the same as entering a comment into
  2197. the Comment gadget of an icon's Information window. Changes made with
  2198. FILENOTE will be reflected in the Information window, and vice versa.
  2199.  
  2200. When an existing file is copied to (specified as the TO argument of a
  2201. COPY command), it will be overwritten, but its original comment will be
  2202. retained. Any comment attached to a FROM file will not be copied unless
  2203. the CLONE or COM option of COPY is specified.
  2204.  
  2205. If the ALL option is given, FILENOTE will add the <comment> to all the
  2206. files in the specified directory. If the QUIET option is given, screen
  2207. output is suppressed.
  2208.  
  2209. Example 1:
  2210.  
  2211.     1> FILENOTE Sonata "allegro non troppo"
  2212.  
  2213. attaches the filenote "allegro non troppo" to the Sonata file.
  2214.  
  2215. Example 2 :
  2216.  
  2217.     1> FILENOTE Toccata "*"presto*""
  2218.  
  2219. attaches the filenote ""presto"" to the Toccata file.
  2220. FIXFONTS
  2221.  
  2222.  
  2223. Format:            FIXFONTS
  2224. Template:            (none)
  2225. Purpose:            To update the .font files of the FONTS: directory.
  2226. Path:            SYS:System/FixFonts
  2227. Specification:
  2228.  
  2229. FIXFONTS runs the FixFonts program. FIXFONTS does not support any
  2230. arguments. Your disk light will come on while the FONTS: directory is
  2231. updated. When the update is finished, the light will go out and a Shell
  2232. prompt will appear.
  2233.  
  2234. FIXFONTS should be used whenever you make changes in the FONTS:
  2235. directory, for example, copying new font files or deleting single font
  2236. sizes.
  2237.  
  2238. Example:
  2239.  
  2240.     1> FIXFONTS
  2241. FKEY
  2242.  
  2243.  
  2244. Format:        FKEY [CX_PRIORITY <priority>) [CX_POPKEY <key>]
  2245. [CX_POPUP <yes|no>]
  2246. Template:            CX_PRIORITY/N/K, CX_POPKEY/K, CX_POPUP/K,
  2247. Purpose:        To assign text to function and shifted function
  2248. keys.
  2249. Path:            Extras:Tools/Commodities/FKey
  2250. Specification:
  2251.  
  2252. FKEY allows you to assign functions to keys, eliminating the need for
  2253. repetitive typing.
  2254.  
  2255. FKEY lets you assign any of eight commands to any key sequence that you
  2256. can enter. The Defined Keys scrolling list shows all the currently
  2257. defined key sequences. The New Key and Delete Key gadgets let you add
  2258. and remove key sequences.
  2259.  
  2260. The Command cycle gadget lets you pick a command for the current key
  2261. sequence. The possible commands are the following:
  2262.  
  2263. Cycle Windows    Brings the rearmost application window on the
  2264. Workbench screen to the front of the display and
  2265. activates it. This only affects application windows
  2266. opened by tools or projects, such as Clock. Disk
  2267. and drawer windows are not affected.
  2268. Cycle Screens    Brings the rearmost screen to the front of the
  2269. display.
  2270. Enlarge Window    Enlarges the active window to its maximum size,
  2271. taking into account the edges of the screen.
  2272. Shrink Window        Shrinks the active window to its minimum size.
  2273. Toggle Window SizeZooms the active window just as if you had selected
  2274. the window's zoom gadget. It also works on windows
  2275. that only have a zoom gadget and no sizing gadgets.
  2276. Insert Text    When the key sequence is entered, the specified
  2277. string is inserted instead. The string to insert is
  2278. specified in the Command Parameters gadget.
  2279. Run Program    Lets you run a program by pressing any key
  2280. sequence. The program name and its arguments are
  2281. specified in the Command Parameters gadget.
  2282. Run ARexx ScriptLets you run an ARexx script by pressing any key
  2283. sequence. A script name and its arguments are
  2284. specified in the Command Parameters gadget. Putting
  2285. quotes around the script name turns it into an
  2286. ARexx script.
  2287. FONT
  2288.  
  2289.  
  2290. Format:        FONT [FROM <flename>] [EDlT] [USE] [SAVE]
  2291. [PUBSCREEN <public screen name>]
  2292. Template:            FROM, EDlT/S, USE/S, SAVE/S, PUBSCREEN/K
  2293. Purpose:            To specify the fonts used by the system.
  2294. Path:            Extras:Prefs/Font
  2295. Specifications:
  2296.  
  2297. FONT with no arguments or with the EDIT argument opens the Font editor.
  2298. The FROM argument lets you specify a file to open. This must be a file
  2299. that was previously saved with the Save As menu item of the Font
  2300. editor. For example, if you have saved a special configuration of the
  2301. Font editor to a file in the Presets drawer, you can use the FROM
  2302. argument to open that file. If the USE switch is also given, the editor
  2303. will not open, but the settings in the FROM file will be used. If the
  2304. SAVE switch is given, the editor will not open, but the settings in the
  2305. FROM file will be saved.
  2306. FORMAT
  2307.  
  2308.  
  2309. Format:        FORMAT DEVICE|DRlVE <device> NAME <name>
  2310. [<OFS/FFS>] [<INTERNATIONAL|NOINTERNATIONAL>]
  2311. [NOICONS] [QUICK]
  2312. Template:        DEVICE=DRlVE/K/A, NAME/K/A, OFS/S|FFS/S,
  2313. INTL=INTERNATIONAL/S, NOINTL=NOINTERNATIONAL/S,
  2314. NOICON/S, QUlCK/S
  2315. Purpose:            To format a disk for use with the Amiga.
  2316. Path:            SYS:System/Format
  2317. Specification:
  2318.  
  2319. To format a disk, you must specify both the DEVICE and the NAME
  2320. keywords. The name can be from one to thirty-one characters in length.
  2321. If you include spaces in the name, it must be enclosed in double
  2322. quotes.
  2323.  
  2324. The NOICONS option prevents a Trashcan icon from being added to the
  2325. newly formatted disk.
  2326.  
  2327. The QUICK option specifies that FORMAT will only format and create the
  2328. root block (and track), the boot block (and track), and create the
  2329. bitmap blocks. This is useful when reformatting a previously formatted
  2330. floppy disk.
  2331.  
  2332. The OFS option forces the disk to be formatted using the Old File
  2333. System. This is the default for floppy disks. The FFS option causes the
  2334. disk to be formatted using the Fast File System. This can provide for
  2335. faster operation than OFS disks, but the resulting disks cannot be
  2336. shared with Amigas with system software releases prior to 2.0. The
  2337. INTERNATIONAL option forces the disk to be formatted using the
  2338. international versions of the file systems. These international
  2339. versions deal correctly with upper and lower letter case conversions of
  2340. international characters in filenames. The NOINTERNATIONAL option
  2341. forces the non-international equivalent to OFS NOINTERNATIONAL for a
  2342. floppy device, and FFS NOINTERNATIONAL for a credit card device.
  2343.  
  2344. Example 1:
  2345.  
  2346.     1> FORMAT DRIVE DF0: NAME EmptyDisk
  2347.  
  2348. formats the disk in drive DF0:, erases any data, and names the disk
  2349. EmptyDisk.
  2350.  
  2351. Example 2:
  2352.  
  2353.     1> FORMAT DRIVE DF2: NAME NewDisk QUICK
  2354.  
  2355. Reformats, or erases, a disk that already contains data.
  2356. FOUNTAIN
  2357.  
  2358.  
  2359. Format:            FOUNTAIN [VALIDATE]
  2360. Template:            VALIDATE/S
  2361. Purpose:            To manage use of Intellifont outline fonts.
  2362. Path:            SYS: System/Fountain
  2363. Specification:
  2364.  
  2365. FOUNTAIN, which is in the System drawer on the Workbench disk, manages
  2366. Intellifont outline fonts on your Amiga. With FOUNTAIN, you can install
  2367. new outline fonts on your system, specify new sizes for existing fonts,
  2368. and delete fonts that are no longer needed. You can create bitmap
  2369. versions of any size outline font that can be used in applications that
  2370. do not support outline fonts directly.
  2371.  
  2372. FOUNTAIN is valid on Workbench 2.1 level software.
  2373. GET
  2374.  
  2375.  
  2376. Format:            GET <name>
  2377. Template:            NAME/A
  2378. Purpose:            To get the value of a local variable.
  2379. Path:            Internal
  2380. Specification:
  2381.  
  2382. GET is used to retrieve and display the value of a local environment
  2383. variable. The value is displayed in the current window.
  2384.  
  2385. Local environment variables are only recognized by the Shell in which
  2386. they are created, or by any Shells created from a NEWSHELL command
  2387. executed in the original Shell. If you open an additional Shell by
  2388. opening the Shell icon or by using the Execute Command menu item,
  2389. previously created local environment variables will not be available.
  2390.  
  2391.  
  2392. Example:
  2393.  
  2394.     1> GET editor
  2395.  
  2396. Extras:Tools/MEmacs
  2397.  
  2398. See also: SET
  2399. GETENV
  2400.  
  2401.  
  2402. Format:            GETENV <name>
  2403. Template:            NAME/A
  2404. Purpose:            To get the value of a global variable.
  2405. Path:            Internal
  2406. Specification:
  2407.  
  2408. GETENV is used to retrieve and display the value of a global
  2409. environment variable. The value is displayed in the current window.
  2410. Global variables are stored in ENV: and are recognized by all Shells.
  2411.  
  2412. Example:
  2413.  
  2414.     1> GETENV editor
  2415.     Extras:Tools/MEmacs
  2416.  
  2417.  
  2418. See also: SETENV
  2419. GRAPHICDUMP
  2420.  
  2421.  
  2422. Format:        GRAPHICDUMP [TINY|SMALL|MEDIUM|LARGE|<xdots>:
  2423. <ydots>]
  2424. Template:        TINY/S, SMALL/S, MEDIUM/S, LARGE/S,
  2425. <xdots>:<ydots>/s
  2426. Purpose:            To print the frontmost screen.
  2427. Path:            Extras:Tools/GraphicDump
  2428. Specification:
  2429.  
  2430. GRAPHICDUMP sends a dump of the frontmost screen to the printer about
  2431. ten seconds after issuing the command. The ten second delay allows the
  2432. user to bring the wanted screen to the front. The size options, which
  2433. correspond to the program's acceptable Tool Types, determine the width
  2434. of the printout:
  2435.  
  2436. TINY        1/4 the total width allowed by the printer
  2437. SMALL    1/2 the total width allowed by the printer
  2438. MEDIUM    3/4 the total width allowed by the printer
  2439. LARGE    the full width allowed by the printer
  2440.  
  2441. The height of the printout is such that the proportions of the screen
  2442. are maintained.
  2443.  
  2444. To specify exact dimensions, substitute the absolute width in dots for
  2445. <xdots> and the absolute height for <ydots>.
  2446.  
  2447.  
  2448. Example 1:
  2449.  
  2450.     1> GRAPHICDUMP SMALL
  2451.  
  2452. will produce a printout of the frontmost screen that is about one-half
  2453. the total width allowed by the printer.
  2454.  
  2455.  
  2456. Example 2:
  2457.  
  2458.     1> GRAPHICDUMP 600:300
  2459.  
  2460. will produce a printout that is 600 dots wide by 300 dots high.
  2461. ICONEDIT
  2462.  
  2463.  
  2464. Format:            ICONEDIT
  2465. Template:            (none)
  2466. Purpose:            To edit the appearance and type of icons.
  2467. Path:            Extras:Tools/IconEdit
  2468. Specifications:
  2469.  
  2470. ICONEDIT opens the IconEdit program. The command does not support any
  2471. arguments.
  2472.  
  2473.  
  2474. Example:
  2475.  
  2476.     1> ICONEDIT
  2477. ICONTROL
  2478.  
  2479.  
  2480. Format:        ICONTROL [FROM <filename>] [EDIT] [USE] [SAVE]
  2481. [PUBSCREEN <public screen name>]
  2482. Template:            FROM, EDIT/S, USE/S, SAVE/S, PUBSCREEN/K
  2483. Purpose:            To specify parameters used by the Workbench.
  2484. Path:            Extras:Prefs/IControl
  2485. Specification:
  2486.  
  2487. ICONTROL without any arguments or with the EDIT argument opens the
  2488. IControl editor. The FROM argument lets you specify a file to open.
  2489. This must be a file that was previously saved with the Save As menu
  2490. item of the IControl editor. For example, if you have saved a special
  2491. configuration of the IControl editor to a file in the Presets drawer,
  2492. you can use the FROM argument to open that file. If the USE switch is
  2493. also given, the editor will not open, but the settings in the FROM file
  2494. will be used. If the SAVE switch is given, the editor will not open,
  2495. but the settings in the FROM file will be saved.
  2496.  
  2497.  
  2498. Example:
  2499.  
  2500.     1> ICONITROL Prefs/Presets/IControl.pre USE
  2501.  
  2502. uses the settings that were saved in the IControl.pre file. The editor
  2503. is not opened.
  2504. ICONX
  2505.  
  2506.  
  2507. Format:            ICONX
  2508. Template:            (none)
  2509. Purpose:            To allow execution of a script file from an icon.
  2510. Path:            C:ICONX
  2511. Specification:
  2512.  
  2513. ICONX allows you to execute a script file of AmigaDOS commands via an
  2514. icon.
  2515.  
  2516. To use ICONX, create or copy a project icon for the script. Open the
  2517. icon's Information window and change the Default Tool of the icon to
  2518. C:ICONX and select Save to store the changed .info file. The script can
  2519. then be executed by double-clicking on the icon.
  2520.  
  2521. When the icon is opened, ICONX changes the current directory to the
  2522. directory containing the project icon before executing the script. An
  2523. input/output window for the script file will be opened on the Workbench
  2524. screen.
  2525.  
  2526. Several Tool Types can be specified in the icons for the script files.
  2527. The WINDOW Tool Type lets you provide an alternate window specification
  2528. for the input/output window. By default, the window's specification is:
  2529.  
  2530.     WINDOW=CON:0/50//80/IconX/AUTO/WAIT/CLOSE
  2531.  
  2532. This has the effect of opening a window only if there actually is some
  2533. output performed by the script. If a window does open, it will remain
  2534. opened after the script terminates, until the user clicks on its close
  2535. gadget.
  2536.  
  2537. The WAIT Tool Type lets you specify the number of seconds the
  2538. input/output window should remain open after the script terminates.
  2539. Using this option will cause the default input/output window to not
  2540. have a close gadget. There is also a DELAY Tool Type which works in a
  2541. very similar way, except that its parameter is in 1/50th of a second,
  2542. instead of in seconds.
  2543.  
  2544. The STACK Tool Type lets you specify the number of bytes to use for
  2545. stack for the script execution. If this Tool Type is not provided, the
  2546. default 4096 bytes is used.
  2547.  
  2548. Finally, the USERSHELL Tool Type lets you cause the script file to be
  2549. run using the current User Shell instead of the normal ROM Shell. You
  2550. must specify USERSHELL=YES for this to happen. User Shells are third
  2551. party shells that you can purchase and install in your system to
  2552. replace the standard shell environment that comes with the operating
  2553. system.
  2554.  
  2555. Extended selection can be used to pass files that have icons to the
  2556. script. Their filenames appear to the script as keywords. To use this
  2557. facility, the .KEY keyword must appear at the start of the script. In
  2558. this case, the AmigaDOS EXECUTE command is used to execute the script
  2559. file.
  2560.  
  2561. See Also: EXECUTE
  2562. IF
  2563.  
  2564.  
  2565. Format:        IF [NOT] [WARN] [ERROR] [FAlL] [<string> EQ|GT|GE
  2566. <string>] [VAL] [EXlSTS <filename>]
  2567. Template:        NOT/S, WARN/S, ERROR/S, FAlL/S, EQ/K, GT/K, GE/K,
  2568. VAL/S, EXlSTS/K
  2569. Purpose:            To evaluate conditional operations in script files.
  2570. Path:            Internal
  2571. Specification:
  2572.  
  2573. In a script file, IF, when its conditional is true, carries out all the
  2574. subsequent commands until an ENDIF or ELSE command is found. When the
  2575. conditional is not true, execution skips directly to the ENDIF or to an
  2576. ELSE. The conditions and commands in IF and ELSE blocks can span more
  2577. than one line before their corresponding ENDlFs.
  2578.  
  2579. ELSE is optional, and nested IFs jump to the nearest ENDIF.
  2580.  
  2581. The additional keywords are as follows:
  2582.  
  2583. NOT            Reverses the interpretation of the result.
  2584. WARN        True if previous return code is greater than or equal to
  2585. 5.
  2586. ERROR    True if previous return code is greater than or equal to
  2587. 10; only available if you set FAILAT to greater than 10.
  2588. FAIL        True if previous return code is greater than or equal to
  2589. 20; only available if you set FAILAT to greater than 20.
  2590. <a> EO <b>True if the text of a and b is identical (disregarding
  2591. case).
  2592. EXISTS <file>    True if the file exists.
  2593.  
  2594. If more than one of the three condition-flag keywords (WARN, ERROR,
  2595. FAIL) are given, the one with the lowest value is used.
  2596.  
  2597. IF supports the GT (greater than) and GE (greater than or equal to)
  2598. comparisons. Normally, the comparisons are performed as string
  2599. comparisons. However, if the VAL option is specified, the comparison is
  2600. a numeric comparison.
  2601.  
  2602. You can use NOT GE for LT and NOT GT for LE.
  2603.  
  2604. You can use local or global variables with IF by prefacing the variable
  2605. name with a $ character.
  2606.  
  2607. Example 1:
  2608.  
  2609.     IF EXISTS Work/Prog
  2610.         TYPE Work/Prog
  2611.     ELSE
  2612.         ECHO "It's not here"
  2613.     ENDIF
  2614.  
  2615. If the file Work/Prog exists in the current directory, then AmigaDOS
  2616. displays it. Otherwise, AmigaDOS displays the message "It's not here"
  2617. and continues after the ENDIF.
  2618. Example 2:
  2619.  
  2620.     IF ERROR
  2621.         SKIP errlab
  2622.     ENDIF
  2623.     ECHO  "No error"
  2624.     LAB errlab
  2625.  
  2626. If the previous command produced a return code greater than or equal to
  2627. 10, then AmigaDOS skips over the ECHO command to the errlab label.
  2628.  
  2629.  
  2630. See also: EXECUTE, FAILAT, LAB, QUIT, SKIP
  2631. INFO
  2632.  
  2633.  
  2634. Format:            INFO [<device>]
  2635. Template:            DEVICE
  2636. Purpose:            To give information about the file system(s).
  2637. Path:            C:INFO
  2638. Specification:
  2639.  
  2640. INFO displays a line of information about each floppy disk drive and
  2641. hard disk partition. This includes the maximum size of the disk, the
  2642. used and free space, the number of soft disk errors that have occurred,
  2643. and the status of the disk.
  2644.  
  2645. With the DEVICE argument, INFO provides information on just one device
  2646. or volume.
  2647.  
  2648. Example:
  2649.  
  2650.     1>INFO
  2651.     Unit        Size    Used    Free    Full    Errs    Status      Name
  2652.     DF0:        879K    1738   20  98%   0    Read Only   Workbench
  2653.     DF1:        879K     418    1140  24%   0    Read/Write  Text-6
  2654.  
  2655.     Volumes available:
  2656.     Workbench [Mounted]
  2657.     Text-6 [Mounted] 
  2658. INITPRINTER
  2659.  
  2660.  
  2661. Format:            INITPRlNTER
  2662. Template:            (none)
  2663. Purpose:        To initialize a printer for print options specified
  2664. in the Preferences editors.
  2665. Path:            Extras:Tools/InitPrinter
  2666. Specification:
  2667.  
  2668. INITPRINTER runs the InitPrinter program. It does not support any
  2669. arguments. You will hear the printer reset, then the Shell prompt will
  2670. return. The printer gets initialized automatically on first access, but
  2671. if you switched it off in the interim, you have to initialize the
  2672. printer again with INITPRINTER.
  2673.  
  2674.  
  2675. Example :
  2676.  
  2677.       1> INITPRINTER 
  2678. INPUT
  2679.  
  2680.  
  2681. Format:        INPUT [FROM <filename>] [EDlT] [USE] [SAVE]
  2682. [PUBSCREEN <public screen name>]
  2683. Template:            FROM, EDIT/S, USE/S, SAVE/S, PUBSCREEN/K
  2684. Purpose:        To specify different speeds for the mouse and
  2685. keyboard and to select a national keyboard.
  2686. Path:            Extras:Prefs/Input
  2687. Specification:
  2688.  
  2689. INPUT without any arguments or with the EDIT argument opens the Input
  2690. editor. The FROM argument lets you specify a file to open. This must be
  2691. a file that was previously saved with the Save As menu item of the
  2692. Input editor. For example, if you have saved a special configuration of
  2693. the Input editor to a file in the Presets drawer, you can use the FROM
  2694. argument to open that file. If the USE switch is also given, the editor
  2695. will not be opened, but the settings in the FROM file will be used. If
  2696. the SAVE switch is given, the editor will not open, but the settings in
  2697. the FROM file will be saved.
  2698.  
  2699.  
  2700. Example:
  2701.  
  2702.     1> INPUT Prefs/Presets/Input.fast SAVE
  2703.  
  2704. loads and saves the settings from the Input.fast file. Even if the
  2705. system is rebooted, those settings will still be in effect. The editor
  2706. does not open.
  2707. INSTALL
  2708.  
  2709.  
  2710. Format:        INSTALL [DRIVE] <DF0:|DF1:|DF2:|DF3:|CC0:> [NOBOOT]
  2711. [CHECK] [FFS]
  2712. Template:            DRlVE/A, NOBOOT/S, CHECK/S, FFS/S
  2713. Purpose:        To write the boot block to a formatted floppy disk,
  2714. or credit card, specifying whether it should be
  2715. bootable.
  2716. Path:            C:INSTALL
  2717. Specification:
  2718.  
  2719. INSTALL clears a floppy disk's or credit card's boot block area and
  2720. writes a valid boot block onto the media.
  2721.  
  2722. The NOBOOT option removes the boot block from an AmigaDOS disk or card,
  2723. making it not bootable.
  2724.  
  2725. The CHECK option checks for valid boot code. It reports whether a disk
  2726. or card is bootable or not and whether standard Commodore-Amiga boot
  2727. code is present on the media. The condition flag is set to 0 if the
  2728. boot code is standard (or the disk or card isn't bootable), 5 (WARN)
  2729. otherwise.
  2730.  
  2731. The FFS switch is ignored. It remains part of the template to ensure
  2732. compatibility with earlier scripts and programs.
  2733.  
  2734.  
  2735. Example 1 :
  2736.  
  2737.     1> INSTALL DF0: CHECK
  2738.     No bootblock installed
  2739.  
  2740. indicates that there is a non-bootable floppy in DF0:.
  2741.  
  2742.  
  2743. Example 2:
  2744.  
  2745.     1> INSTALL DF0:
  2746.  
  2747. makes the disk in drive DF0: a bootable disk.
  2748.  
  2749.  
  2750. Example 3:
  2751.  
  2752.     1> INSTALL DF0: CHECK
  2753.     Appears to be FFS bootblock
  2754.  
  2755. indicates that there is an FFS floppy in DF0:.
  2756. INTELLIFONT
  2757.  
  2758.  
  2759. Format:            INTELLIFONT [VALIDATE]
  2760. Template:            VALIDATE/S
  2761. Purpose:            To manage use of Intellifont outline fonts.
  2762. Path:            SYS:System/Intellifont
  2763. Specification:
  2764.  
  2765. INTELLIFONT, which is in the System drawer on the Workbench disk,
  2766. manages Intellifont outline fonts on your Amiga. With INTELLIFONT, you
  2767. can install new outline fonts on your system, specify new sizes for
  2768. existing fonts, and delete fonts that are no longer needed. You can
  2769. create bitmap versions of any size outline font that can be used in
  2770. applications that do not support outline fonts directly.
  2771.  
  2772. INTELLIFONT is valid on Workbench 3.0 level software and replaces the
  2773. predecessor program FOUNTAIN.
  2774. IPREFS
  2775.  
  2776.  
  2777. Format:            IPREFS [QUIT]
  2778. Template:            QUIT/S
  2779. Purpose:        To communicate Preferences information stored in
  2780. the individual editor files to the Workbench and
  2781. Intuition.
  2782. Path:            C:IPREFS
  2783. Specifications:
  2784.  
  2785. IPREFS reads the individual system Preferences files and passes the
  2786. information to the Workbench so that it can reply accordingly. IPREFS
  2787. is generally run in the Startup-sequence after the Preferences files
  2788. are copied to ENV:. Each time a user selects Save or Use from within an
  2789. editor, IPREFS is notified and passes the information along to
  2790. Workbench. If necessary, IPREFS will reset Workbench in order to
  2791. implement those changes. If any project or tool windows are open,
  2792. IPREFS will display a requester asking you to close any non-drawer
  2793. windows.
  2794.  
  2795. QUIT will halt all IPREFS operations. Since IPREFS runs in the
  2796. background, there is no reason to use this option.
  2797. JOIN
  2798.  
  2799.  
  2800. Format:            JOIN [FILE] {<file|pattern>} AS|TO <filename>
  2801. Template:            FlLE/M/A, AS=TO/K/A
  2802. Purpose:            To concatenate two or more files into a new file.
  2803. Path:            C:JOIN
  2804. Specification:
  2805.  
  2806. JOIN copies all the listed files, in the order given, to one new file.
  2807. This destination file cannot have the same name as any of the source
  2808. files. You must supply a destination filename. The original files
  2809. remain unchanged. Any number of files may be JOINed in one operation.
  2810.  
  2811. TO can be used as a synonym for AS.
  2812.  
  2813. Example:
  2814.  
  2815.     1> JOIN Part1 Part2 Part3 AS Textfile
  2816. KEYSHOW
  2817.  
  2818.  
  2819. Format:            KEYSHOW
  2820. Template:            (none)
  2821. Purpose:            To display the current Keymap.
  2822. Path:            Extras:Tools/KeyShow
  2823. Specification:
  2824.  
  2825. KEYSHOW opens the KeyShow window. The command does not support any
  2826. arguments. To exit the program, select the window's close gadget.
  2827. LAB
  2828.  
  2829.  
  2830. Format:            LAB [<string>]
  2831. Template:            (none)
  2832. Purpose:            To specify a label in a script fle.
  2833. Path:            Internal
  2834. Specifcation:
  2835.  
  2836. LAB is used in scripts to define a label that is looked for by the SKIP
  2837. command. The label <string> may be of any length but must be
  2838. alphanumeric. No symbols are allowed. If the <string> contains spaces,
  2839. it must be enclosed in quotes.
  2840.  
  2841.  
  2842. See also: SKIP, IF, EXECUTE
  2843. LIST
  2844.  
  2845.  
  2846. Format:        LIST [{<dir|pattern|filename>}] [P|PAT <pattern>]
  2847. [KEYS] [DATES] [NODATES] [TO <name>] [SUB <string>]
  2848. [SINCE <date>] [UPTO <date>] [QUlCK] [BLOCK]
  2849. [NOHEAD] [FILES] [DIRS] [LFORMAT <string>] [ALL]
  2850. Template:        DIR/M, P=PAT/K, KEYS/S, DATES/S, NODATES/S, TO/K,
  2851. SUB/K, SINCE/K, UPTO/K, QUICK/S, BLOCK/S, NOHEAD/S,
  2852. FILES/S, DIRS/S, LFORMAT/K, ALL/S
  2853. Purpose:        To list specified information about directories and
  2854. files.
  2855. Path:            C:LIST
  2856. Specification:
  2857.  
  2858. LIST displays information about the contents of the current directory.
  2859. If you specify a <dir>, <pattern>, or <filename> argument, LIST will
  2860. display information about the specified directory, all directories or
  2861. files that match the pattern, or the specified file, respectively.
  2862.  
  2863. Unless other options are specified, LIST displays the following:
  2864.  
  2865. name            The name of the file or directory.
  2866. size        The size of the file in bytes. If there is nothing in
  2867. this file, the field will read empty. For directories,
  2868. this entry reads Dir.
  2869. protectionThe protection bits that are set for this file are shown
  2870. as letters. The clear (unset) bits are shown as hyphens.
  2871. Most files will show the default protection bits,
  2872. ----rwed for readable/writable/executable/delete-able.
  2873. See the PROTECT command for more on protection bits.
  2874. date and time    The date and time the file was created or last changed.
  2875. comment    The comment, if any, placed on the file using the
  2876. FILENOTE command. It is preceded by a colon (:).
  2877.  
  2878. LIST has options which will change the way the output is displayed.
  2879. These options are:
  2880.  
  2881. KEYS        Displays the block number of each file header or
  2882. directory. This is mostly useful to programmers.
  2883. DATES    Displays dates in the form DD-MMM-YY (the default unless
  2884. you use QUICK).
  2885. NODATES        Will not display date and time information.
  2886. TO <name>    Specifies an output file or device for LIST; by default,
  2887. LIST outputs to the current window.
  2888. SUB <string>    Lists only files containing the substring <string>.
  2889. SINCE <date>    Lists only files created on or after the specified date.
  2890. UPTO <date>    Lists only files created on or before the specified date
  2891. QUICK        Lists only the names of files and directories.
  2892. BLOCK        Displays file sizes in blocks, rather than bytes.
  2893. NOHEAD        Suppresses the printing of the header information.
  2894. FILES        Lists files only (no directories).
  2895. DIRS            Lists directories only (no files).
  2896. LFORMAT        Defines a string to specially format LIST output.
  2897. ALL            Lists all files in directories and subdirectories.
  2898. The LFORMAT option modifies the output of LIST and can be used as a
  2899. quick method of generating script files. When LFORMAT is specified, the
  2900. QUICK and NOHEAD options are automatically selected. When using LFORMAT
  2901. you must specify an output format specification string; this string is
  2902. incorporated into the script file. If you want the output to be saved,
  2903. you must redirect it to a file by using the > operator or specifying a
  2904. TO file.
  2905.  
  2906. The format for the output format specification string is
  2907. LFORMAT=<string>. To include the output of LlST in this string, use the
  2908. substitution operator %S. The path and filename can be made part of the
  2909. string this way. Whether the path or the filename is substituted for an
  2910. occurrence of %S depends on how many occurrences are in the LFORMAT
  2911. line, and their order, as follows:
  2912.  
  2913.  
  2914.                 Substituted with each occurrence
  2915.  
  2916. Occurrences of %S   1st        2nd        3rd        4th
  2917.  
  2918.         1        filename
  2919.         2        path        filename
  2920.         3        path        filename    filename
  2921.         4        path        filename    path        filename
  2922.  
  2923. When using %S, the path is always relative to the current directory.
  2924.  
  2925. Some new options allow you to specify fields to be printed in the
  2926. LFORMAT output. These options are:
  2927.  
  2928. %A    Prints file attributes (protection bits).
  2929. %B    Prints size of file in blocks.
  2930. %C    Prints any comments attached to the file.
  2931. %D    Prints the date associated with the file.
  2932. %E    Prints just the file extension.
  2933. %K    Prints the file key block.
  2934. %L    Prints the length of file in bytes.
  2935. %M    Prints filename only, omitting any extension.
  2936. %N    Prints the name of the file.
  2937. %P    Prints the file parent path.
  2938. %T    Prints the time associated with the file.
  2939.  
  2940. You can put a length specifer and/or a justification specifier between
  2941. the percent sign (%) and the field specifier. To specify left
  2942. justification, place a minus sign (-) before the length specifier.
  2943. Otherwise, the information displayed will be right justified.
  2944.  
  2945.  
  2946. Example 1:
  2947.  
  2948.     1> LIST Dirs
  2949.     Monitors        Dir       rwed  27-Jun-90   11:43:59
  2950.     T               Dir       rwed  16-Jul-90   11:37:43
  2951.     Trashcan        Dir       rwed  21-Jun-90   17:54:20
  2952.  
  2953. Only the directories in the current directory, in this case SYS:, are  
  2954. listed. (A shortened version of the typical output is shown above.)
  2955. Example 2:
  2956.  
  2957.  
  2958.     1> LIST Li#? TO RAM:Libs.file
  2959.  
  2960. LIST will search for any directories or files that start with LI. The
  2961. output of LlST will be sent to Libs.file in RAM:.
  2962.  
  2963.  
  2964. Example 3:
  2965.  
  2966.     1> LIST DF0:Documents UPTO 09-Oct-90
  2967.  
  2968. Only the files or directories on the Documents directory of DF0: that
  2969. have not been changed since October 9, 1990 will be listed.
  2970.  
  2971.  
  2972. Example 4:
  2973.  
  2974.     1> LIST >RAM:Scriptnotes #? LFORMAT="filenote %S%S Testnote"
  2975.  
  2976. A new script file, Scriptnotes, is created in RAM:. The contents will
  2977. include a list of all the files in the current directory. When
  2978. Scriptnotes is executed, it will add the filenote Testnote to each
  2979. file. For example, if the current directory is S:, the contents of
  2980. Scriptnotes as produced by this command might look like this:
  2981.  
  2982.     filenote s:HDBackup.config Testnote
  2983.     filenote s:DPat Testnote
  2984.     filenote s:Ed-startup Testnote
  2985.     filenote s:PCD Testnote
  2986.     filenote s:Shell-startup Testnote
  2987.     filenote s:SPat Testnote
  2988.     filenote s:Startup-sequence Testnote
  2989.  
  2990.  
  2991. Example 5:
  2992.  
  2993.     1> LIST Testfile LFORMAT "%-25N %L %12A %D
  2994.     Testfile                 28       ----rwed 28-May-92
  2995.  
  2996. %-25N specifies that the length of the field containing the name of
  2997. the file is to be 25 characters long (25), and the text is to be left
  2998. justified (-). %12A specifies that the length of the field containing
  2999. the file attributes is to be 12 characters long (12), and the text is
  3000. to be right justified.
  3001. LOADWB
  3002.  
  3003.  
  3004. Format:            LOADWB [-DEBUG] [DELAY] [CLEANUP] [NEWPATH]
  3005. Template:            -DEBUG/S, DELAY/S, CLEANUP/S, NEWPATH/S
  3006. Purpose:            To start Workbench.
  3007. Path:            C:LOADWB
  3008. Specification:
  3009.  
  3010. LOADWB starts the Workbench. Normally, this is done when booting, by
  3011. placing the LOADWB command in the Startup- sequence file. If you shut
  3012. down the Workbench, LOADWB can beused from a Shell to restart it.
  3013.  
  3014. The -DEBUG option makes a special developer menu, Debug, available in
  3015. the Workbench menu bar. If the DELAY option is specified, LOADWB waits
  3016. three seconds before executing, giving disk activity time to stop. The
  3017. CLEANUP option automatically performs a "cleanup" of the window.
  3018.  
  3019. Workbench snapshots the current paths in effect when the LOADWB command
  3020. is executed. It uses these paths for each Shell started from Workbench.
  3021. NEWPATH allows you to specify a new path which is snapshot from the
  3022. current Shell.
  3023.  
  3024.  
  3025. Example 1 :
  3026. If you have quit the Workbench and are working through a Shell,
  3027. entering:
  3028.  
  3029.     1> LOADWB
  3030.  
  3031. will bring the Workbench back. Entering LOADWB when the Workbench is
  3032. already loaded has no effect.
  3033.  
  3034.  
  3035. Example 2:
  3036.  
  3037.     1> PATH DF2:bin ADD
  3038.     1> LOADWB NEWPATH
  3039.  
  3040. loads the Workbench. Any Shells started from the icon will have the
  3041. same path as the Shell used to run the LOADWB NEWPATH command.
  3042. LOCALE
  3043.  
  3044.  
  3045. Format:        LOCALE [FROM <filename>] [EDIT] [USE] [SAVE]
  3046. [PUBSCREEN <public screen name>]
  3047. Template:            FROM, EDIT/S, USE/S, SAVE/S, PUBSCREEN/K
  3048. Purpose:            To allow choice of languages available on system.
  3049. Path:            SYS:Prefs/locale
  3050. Specification:
  3051.  
  3052. LOCALE allows you to choose the languages you want to use in your
  3053. system. The default setting is USA English; however, you can choose
  3054. from a number of other languages.
  3055.  
  3056. The Locale editor allows you to select your country of origin, your
  3057. time zone, and your preferred languages. When you install your
  3058. workbench software, you choose the languages that you want available on
  3059. your system.
  3060.  
  3061. LOCALE without any arguments or with the EDIT argument opens the Locale
  3062. editor. The FROM argument lets you specify a file to open. This must be
  3063. a file that was previously saved with the Save As menu item of the
  3064. Locale editor. For example, if you have saved a special configuration
  3065. of the Locale editor to a file in the Presets drawer, you can use the
  3066. FROM argument to open that file. If the USE switch is also given, the
  3067. editor will not be opened, but the settings in the FROM file will be
  3068. used. If the SAVE switch is given the editor will not open, but the
  3069. settings in the FROM file will be saved.
  3070.  
  3071. Full information on localization is given in Using the Amiga Worhbench
  3072. Manual.
  3073. LOCK
  3074.  
  3075.  
  3076. Format:            LOCK <drive> [ON|OFF] [<passkey>]
  3077. Template:            DRIVE/A, ON/S, OFF/S, PASSKEY
  3078. Purpose:            To set the write protect status of a device.
  3079. Path:            C:LOCK
  3080. Specification:
  3081.  
  3082.  
  3083. LOCK sets or unsets the write protect status of a device or partition.
  3084. The LOCK remains on until the system is rebooted or until the LOCK is
  3085. turned off with the LOCK OFF command.
  3086.  
  3087. An optional passkey may be specified. If the passkey is used to lock a
  3088. hard disk partition, the same passkey must be specifed to unlock the
  3089. partition. The passkey may be any number of characters in length.
  3090.  
  3091.  
  3092. Example:
  3093.  
  3094.     1>  LOCK Work: ON SecretCode
  3095.  
  3096. The Work: partition is locked. You can read the contents of Work:
  3097. with commands like DIR, LIST or MORE, but you cannot alter the
  3098. contents of the partition. If you try to edit the contents of a file on
  3099. Work:, a requester will appear stating that Work: is write-protected.
  3100. For example, if you try to create a new directory by entering the
  3101. following:
  3102.  
  3103.     1> MAKEDIR WORK:Test
  3104.  
  3105. the following message will appear:
  3106.     Can't create directory Work:Test
  3107.     Disk is write-protected
  3108.  
  3109. To unlock the partition, enter:
  3110.  
  3111.     1> LOCK Work: OFF SecretCode
  3112.  
  3113. The locking of a device is only good for the duration of the current
  3114. session. Resetting or turning off the Amiga cancels the locking of
  3115. the device.
  3116. MAGTAPE
  3117.  
  3118.  
  3119. Format:        MAGTAPE [DEVICE <device name>] [UNIT <n>]
  3120. [RET|RETENSION] [REW|REWlND] [SKIP <n>)
  3121. Template:        DEVICE/K, UNIT/N/K, RET=RETENSION/S, REW=REWIND/S,
  3122. SKIP/N/K
  3123. Purpose:        To retension, rewind, or skip forward on SCSI
  3124. tapes.
  3125. Path:            C:MAGTAPE
  3126. Specification:
  3127.  
  3128. By default, MAGTAPE uses SCSl.device unit 4. To change the default, you
  3129. must use both the DEVICE and UNIT keywords.
  3130.  
  3131. The RET|RETENSION option runs the tape to the end, then rewinds it. The
  3132. REW|REWIND option rewinds the tape. The SKIP <n> option allows you to
  3133. skip files on the tape.
  3134.  
  3135. MAGTAPE tests to see if the unit is ready before sending the command.
  3136. If your tape is not on-line, you may have to repeat the MAGTAPE
  3137. command.
  3138.  
  3139.  
  3140. Example:
  3141.  
  3142.     1> MAGTAPE DEVICE second scsi.device UNIT 0 REW 
  3143. MAKEDIR
  3144.  
  3145.  
  3146. Format:            MAKEDIR {<name>}
  3147. Template:            NAME/M
  3148. Purpose:            To create a new directory.
  3149. Path:            C:MAKEDIR
  3150. Specification:
  3151.  
  3152. MAKEDIR creates a new, empty directories with the names you specify.
  3153. The command works within only one directory level at a time, so any
  3154. directories on the given paths must already exist. The command fails if
  3155. a directory or a file of the same name already exists in the directory
  3156. in which you are attempting to create a new directory.
  3157.  
  3158. MAKEDIR does not create a drawer icon for the new directory.
  3159.  
  3160.  
  3161. Example 1:
  3162.  
  3163.     1> MAKEDIR Tests
  3164.  
  3165. creates a directory Tests in the current directory.
  3166.  
  3167.  
  3168. Example 2:
  3169.  
  3170.     1> MAKEDIR DF1:Xyz
  3171.  
  3172. creates a directory Xyz in the root directory of the disk in DF1:.
  3173.  
  3174.  
  3175. Example 3:
  3176.  
  3177.     1> CD DF0:
  3178.     1> MAKEDIR Documents Payables Orders
  3179.  
  3180. creates three directories, Documents, Payables, and Orders, on the disk
  3181. in DF0:.
  3182. MAKELINK
  3183.  
  3184.  
  3185. Format:            MAKELINK [FROM] <file> [TO] <file> [HARD] [FORCE]
  3186. Template:            FROM/A, TO/A, HARD/S, FORCE/S
  3187. Purpose:            To create a link between files.
  3188. Path:            C:MAKELINK
  3189. Specification:
  3190.  
  3191. MAKELINK creates a file on a disk that is a pointer to another file,
  3192. known as a link. When an application or command calls the FROM file,
  3193. the TO file is actually used. By default, MAKELINK supports hard links
  3194. - the FROM file and TO file must be on the same volume.
  3195.  
  3196. Soft links, which can be links across volumes, are not currently
  3197. implemented.
  3198.  
  3199. Normally, MAKELINK does not support directory links, as they can be
  3200. dangerous to applications. To create a directory link, you must use the
  3201. FORCE option. If MAKELINK detects that you are creating a circular
  3202. link, such as a link to a parent directory, you will receive a Link
  3203. loop not allowed message.
  3204. MEMACS
  3205.  
  3206.  
  3207. Format:            MEMACS [<filename>] [OPT W] [goto <n>]
  3208. Template:            FROM/M, OPT/K, GOTO/K
  3209. Purpose:            To enable screen-oriented text editing.
  3210. Path:            Extras: Tools/MEmacs
  3211. Specification:
  3212.  
  3213. MEmacs, which stands for MicroEmacs, is a screen-oriented text editor
  3214. found in the Tools drawer of the Extras disk. A text editor has the
  3215. basic functionality of a word processor, but it does not support style
  3216. formatting options. MEmacs is described in detail in Chapter 6.
  3217. MORE
  3218.  
  3219.  
  3220. Format:            MORE <filename>
  3221. Template:            FILENAME/K
  3222. Purpose:            To display the contents of an ASCII file.
  3223. Path:            SYS:Utilities/More
  3224. Specification:
  3225.  
  3226. MORE displays the contents of the file <filename>. If the file is not
  3227. in the current directory, you must specify the complete path. If you
  3228. don't specify a file, MORE will display a file requester.
  3229.  
  3230. Command keys for MORE are explained on screen when you press the H key.
  3231.  
  3232. MORE also accepts input from a PIPE. Since standard input from a PIPE
  3233. is of unknown length, the Previous Page (Backspace or b), Last Page
  3234. (>), and More N% into file (%N) commands are disabled when the MORE
  3235. input is from a PIPE.
  3236.  
  3237. If the EDITOR environment variable is defined and you are using MORE
  3238. from the Shell, you can bring up an editor to use on the file you are
  3239. viewing (press Shift+E). The EDITOR variable should have the complete
  3240. path to the editor specified; i.e., C:ED.
  3241.  
  3242.  
  3243. Example:
  3244.  
  3245.     1> MORE DF0:TestFile
  3246.  
  3247. displays the contents of the ASCII file called TestFile on the disk in
  3248. drive DF0:.
  3249. MOUNT
  3250.  
  3251.  
  3252. Format:            MOUNT {device} [FROM <filename>]
  3253. Template:            DEVICE/M, FROM/K
  3254. Purpose:            To make a device connected to the system available.
  3255. Path:            C:MOUNT
  3256. Specification:
  3257.  
  3258. MOUNT causes AmigaDOS to recognize new devices, handlers, or file
  3259. systems that are being added to the system. The DEVICE keyword
  3260. specifies the devices to be mounted.
  3261.  
  3262. A MountList file contains the parameters of the device that is being
  3263. mounted. By default, MOUNT looks for the MountList file in
  3264. DEVS:DOSDrivers. If it does not find the file, it will then look in
  3265. SYS:Storage/DOSDrivers.
  3266.  
  3267. Each DOSDriver file has an icon associated with it that represents the
  3268. Mount file describing the device. The ability to drag DOSDriver icons
  3269. means that you can control what device gets mounted in your system.
  3270. This is important for CrossDOS. For example, by double clicking on the
  3271. PC0 icon, you can activate MS-DOS device unit 0. By dragging the PC0
  3272. icon from Storage/DOSDrivers to Devs/DOSDrivers, you make the selection
  3273. permanent, and PC0: is then available after every reboot.
  3274.  
  3275. Multiple devices can be mounted with just one invocation. Different
  3276. actions are taken depending on whether the device name argument ends
  3277. with a colon.
  3278.  
  3279.  
  3280. Example 1:
  3281.  
  3282.     1> Mount PIPE:
  3283.  
  3284. This looks for the file DEVS:DOSDrivers/PlPE and processes it if found.
  3285. If the Mount file is processed successfully, the Tool Types for
  3286. DEVS:DOSDrivers/PIPE.info are then processed and override any settings
  3287. from the Mount file.
  3288.  
  3289. If DEVS:DOSDrivers/PIPE does not exist, an attempt is made to find
  3290. SYS:Storage/DOSDrivers/PIPE. If this also fails, then an attempt is
  3291. made to find a PIPE entry in DEVS:MountList.
  3292.  
  3293.  
  3294. Example 2:
  3295.  
  3296.     1> Mount PIPE
  3297.  
  3298. When there is no colon at the end of a device name argument, the name
  3299. is taken as the filename of the Mount file to process. This filename
  3300. can contain wildcards so something like the following is possible:
  3301. Mount DEVS:DOSDrivers/~(#?.info).
  3302. Example 3:
  3303.  
  3304.     1> Mount PIPE FROM <MountList>
  3305.  
  3306. This scans for a PIPE entry in <MountList>.
  3307.  
  3308. Any keyword that can be put in a MountList can also be put as a Tool
  3309. Type entry. The Tool Types data overrides the MountList file itself.
  3310.  
  3311.  
  3312. See Appendix B for further information on MountList.
  3313. MULTIVIEW
  3314.  
  3315.  
  3316. Format:        MULTIVIEW [FILE <filename>] [CLIPBOARD] [CLIPUNIT
  3317. <clipboard unit>] [SCREEN] [PUBSCREEN <public
  3318. screen name>] [REQUESTER] [BOOKMARK] [FONTNAME
  3319. <font name>] [FONTSIZE <font size>] [BACKDROP)
  3320. [WINDOW]
  3321. Template:        FILE, CLIPBOARD/S, CLIPUNIT/K/N, SCREEN/S,
  3322. PUBSCREEN/K, REQUESTER/S, BOOKMARK/S, FONTNAME/K,
  3323. FONTSIZE/K/N, BACKDROP/S, WINDOW/S
  3324. Purpose:        To display picture files, text files, AmigaGuide
  3325. help files, sound files, and animated graphics
  3326. files.
  3327. Path:            SYS:Utilities/Mu1tiView
  3328. Specifications:
  3329.  
  3330. MULTIVIEW displays the contents of a file. If the file is not in the
  3331. current directory, you must specify the complete path. If you don't
  3332. specify a file, MULTIVIEW will display a file requester.
  3333.  
  3334. If CLIPBOARD is specified, the Clipboard will be viewed instead of the
  3335. file. CLIPUNIT specifies the Clipboard unit to use when using the
  3336. CLIPBOARD keyword.
  3337.  
  3338. SCREEN indicates that you want the object to appear on its own screen,
  3339. using the display mode specifed by the object. For example, if an ILBM
  3340. was Low Res, then the screen would match.
  3341.  
  3342. If REQUESTER is specified, MULTIVIEW will display a file requester.
  3343.  
  3344. BOOKMARK recalls the object and position when opening a file with a
  3345. bookmark.
  3346.  
  3347. FONTNAME specifes which font to use when viewing text objects. FONTSIZE
  3348. specifies the font size in points to use when viewing text objects.
  3349.  
  3350. BACKDROP indicates that the window should be a backdrop window.
  3351.  
  3352. WINDOW will open the Mu1tiView window without an object so that it can
  3353. be placed in the WBStartup directory.
  3354.  
  3355. MULTIVIEW is valid on Workbench 3.0 level software.
  3356. NEWCLI
  3357.  
  3358.  
  3359. Format:            NEWCLI [<window specification>] [FROM <filename>]
  3360. Template:            WINDOW, FROM
  3361. Purpose:            To start a new Shell process.
  3362. Path:            Internal
  3363. Specifications:
  3364.  
  3365. NEWCLI starts a new Shell process. It is the same as using the NEWSHELL
  3366. command. See the specifications for NEWSHELL for more information.
  3367. NEWSHELL
  3368.  
  3369.  
  3370. Format:            NEWSHELL [<window specification>] [FROM <filename>]
  3371. Template:            WINDOW,F ROM
  3372. Purpose:            To open a new interactive Shell window.
  3373. Path:            Internal
  3374. Specifications:
  3375.  
  3376. NEWSHELL invokes a new, interactive Shell. The new window becomes the
  3377. currently-selected window and process. The new window has the same
  3378. current directory, prompt string, path, and stack size as the one from
  3379. which it was invoked. However, each Shell window is independent,
  3380. allowing separate input, output, and program execution.
  3381.  
  3382. The window can be sized, dragged, zoomed, and depth-adjusted just like
  3383. most other Amiga windows.
  3384.  
  3385. To create a custom window, you can include the WINDOW argument. You may
  3386. specify the initial dimensions, location, and title of the window with
  3387. this <window specification> syntax:
  3388.  
  3389. CON:x/y/width/height/title/options
  3390.  
  3391. where:
  3392. x    Is the number of pixels from the left edge of the screen to
  3393. the left border of the Shell window.
  3394. y    Is the number of pixels from the top of the screen to the top
  3395. of the Shell window.
  3396. width    Is the width of the Shell window, in pixels.
  3397. height    Is the height of the Shell window, in pixels.
  3398. title    Is the text that appears in the Shell window title bar.
  3399.  
  3400. The permissible options are:
  3401. AUTO    The window automatically appears when the program needs input
  3402. or produces output. With the Shell window, it will open for
  3403. input immediately. The window can only be closed with the
  3404. ENDSHELL command. Selecting the Shell's close gadget will
  3405. close the window, but it will re-open immediately since it is
  3406. expecting input.
  3407. CLOSEThe window has all the standard gadgets, including a close
  3408. gadget.
  3409. BACKDROPThe window appears on the backdrop, behind all the Workbench
  3410. windows. The only gadget in the window border is the zoom
  3411. gadget. This Shell window cannot be brought to the front of
  3412. the screen; you have to resize the Workbench windows to see
  3413. it.
  3414. NOBORDERThe window opens without any left or bottom window border.
  3415. Only the zoom, depth, and sizing gadgets are available.
  3416. NODRAGThe window cannot be dragged. It has a zoom, depth and sizing
  3417. gadget, but no close gadget.
  3418. NOSIZE    The window only has a depth gadget.
  3419. SCREENThe window will open on a public screen. The screen must
  3420. already exist. You must specify the name of the screen after
  3421. the SCREEN keyword.
  3422. SIMPLEIf you enlarge the window, the text will expand to fill the
  3423. newly available space, allowing you to see text that had been
  3424. scrolled out of the window.
  3425. SMARTIf you enlarge the window, the text does not expand to fill
  3426. the newly available space.
  3427. WAIT    The window can only be closed by selecting the close gadget.
  3428. (An example of this is the Execute Command Workbench Output
  3429. Window.)
  3430.  
  3431. NEWSHELL uses the default startup file S:Shell-startup, unless a FROM
  3432. filename is specifed. S:Shell-startup is a standard AmigaDOS script
  3433. fle. You might have several different Shell-startup files, each having
  3434. different command aliases, for example. You can call such customized
  3435. Shell environments with FROM.
  3436.  
  3437. The NEWCLI command has the same effect as NEWSHELL; it invokes a new
  3438. Shell process.
  3439.  
  3440.  
  3441. Example 1 :
  3442.  
  3443.     1>  NEWSHELL
  3444.  
  3445. a new Shell window will open.
  3446.  
  3447.  
  3448. Example 2 :
  3449.  
  3450.     1> NEWSHELL CON:0/0/640/200/My5hell/CLOSE
  3451.  
  3452. A window starting in the upper left corner of the screen and measuring
  3453. 640 pixels wide and 200 pixels high will open. The window will be
  3454. titled MyShell, and it will have a close gadget. If you add the command
  3455. to your User-startup file, a Shell window will open automatically when
  3456. your Amiga is booted.
  3457.  
  3458.  
  3459. Example 3:
  3460.  
  3461.     1> NEWSHELL FROM S:Programming.startup
  3462.  
  3463. opens a new Shell, but instead of executing the Shell-startup file, the
  3464. Programming.startup file is executed. You could have aliases and prompt
  3465. commands in the Programming.startup file that you only use when you are
  3466. programming.
  3467. NOCAPSLOCK
  3468.  
  3469.  
  3470. Format:            NOCAPSLOCK [CX_PRlORlTY<priority>]
  3471. Template:            CX_PRlORlTY/N/K
  3472. Purpose:            To disable the Caps Lock key.
  3473. Path:            Extras:Tools/Commodities/NoCapsLock
  3474. Specification:
  3475.  
  3476. NOCAPSLOCK is a Commodity Exchange program that temporarily disables
  3477. the Caps Lock key.
  3478.  
  3479. CX PRIORITY sets the priority ofNoCapsLock in relation to all the other
  3480. Commodity Exchange programs. All the Commodity Exchange programs are
  3481. set to a default priority of 0.
  3482.  
  3483. To exit NoCapsLock once it has been started from the Shell, enter
  3484. Ctrl+C or use the BREAK command.
  3485.  
  3486.  
  3487. Example:
  3488.  
  3489.     1> NOCAPSLOCK 
  3490. NOFASTMEM
  3491.  
  3492.  
  3493. Format:            NOFASTMEM
  3494. Template:            (none)
  3495. Purpose:            To force the Amiga to use only resident Chip RAM.
  3496. Path:            SYS:System/NoFastMem
  3497. Specification:
  3498.  
  3499. NOFASTMEM disables any Fast (or expansion) RAM used by the system. The
  3500. expansion memory can be turned on again by sending the NoFastMem
  3501. program a break, either via the BREAK command or by pressing Ctrl+C.
  3502.  
  3503.  
  3504. Example:
  3505.  
  3506.     1>  NOFASTMEM 
  3507. OVERSCAN
  3508.  
  3509.  
  3510. Format:        OVERSCAN [FROM <filename>] [EDIT] [USE] [SAVE]
  3511. [PUBSCREEN <public screen name>]
  3512. Template:            FROM, EDIT/S, USE/S, SAVE/S, PUBSCREEN/K
  3513. Purpose:        To change the sizes of the display areas for text
  3514. and graphics.
  3515. Path:            Extras:Prefs/Overscan
  3516. Specification:
  3517.  
  3518. OVERSCAN without any arguments or with the EDIT argument opens the
  3519. Overscan editor. The FROM argument lets you specify a file to open.
  3520. This must be a file that was previously saved with the Save As menu
  3521. item of the Overscan editor. For example, if you have saved a special
  3522. configuration of the Overscan editor to a file in the Presets drawer,
  3523. you can use the FROM argument to open that file. If the USE switch is
  3524. also given, the editor will not open, but the settings in the FROM file
  3525. will be used. If the SAVE switch is given, the editor will not open,
  3526. but the settings in the FROM file will be saved.                       
  3527.                                   
  3528.  
  3529. Example:
  3530.  
  3531.     1> OVERSCAN Prefs/Presets/Overscan.graphics SAVE
  3532.  
  3533. loads and saves the Overscan sizes saved in the Overscan.graphics file.
  3534. PALETTE
  3535.  
  3536.  
  3537. Format:            PALETTE [FROM <filename>] [EDIT] [USE] [SAVE]
  3538. Template:            FROM, EDIT/S, USE/S, SAVE/S
  3539. Purpose:            To change the colors of the Workbench screen.
  3540. Path:            Extras:Prefs/Palette
  3541. Specification:
  3542.  
  3543. PALETTE without any arguments or with the EDIT argument
  3544. opens the Palette editor. The FROM argument lets you specify a
  3545. file to open. This must be a file that was previously saved with the
  3546. Save As menu item of the Palette editor. For example, if you have
  3547. saved a special configuration of the Palette editor to a file in the
  3548. Presets drawer, you can use the FROM argument to open that file.
  3549. If the USE switch is also given, the editor will not be opened, but
  3550. the settings in the FROM file will be used. If the SAVE switch is
  3551. given, the editor will not open, but the settings in the FROM file
  3552. will be saved.
  3553.  
  3554.  
  3555. Example:
  3556.  
  3557.     1> PALETTE Prefs/Presets/Palette.grey USE
  3558.  
  3559. loads and uses the colors saved in the Palette.grey file. If the
  3560. system is rebooted, the previously saved colors will be used.
  3561. PATH
  3562.  
  3563.  
  3564. Format:        PATH [{<dir>}] [ADD] [SHOW] [RESET] [REMOVE]
  3565. [QUIET]
  3566. Template:            PATH/M, ADD/S, SHOW/S, RESET/S, REMOVE/S, QUIET/S
  3567. Purpose:        To control the directory list that the Shell
  3568. searches to find commands.
  3569. Path:            Internal
  3570. Specification:
  3571.  
  3572. PATH lets you see, add to, or change the search path that AmigaDOS
  3573. follows when looking for a command or program to execute. When a
  3574. directory is in the search path, you no longer need to specify the
  3575. complete path to any files or subdirectories within that directory. You
  3576. can simply enter the filename, and AmigaDOS will look through the
  3577. directories in the search path until it finds the file.
  3578.  
  3579. Enter the PATH command alone, or with the SHOW option, and the
  3580. directory names in the current search path will be displayed. Normally,
  3581. when PATH is displaying the directory names, a requester will appear if
  3582. a volume that is part of the search path cannot be found. For example,
  3583. if you added a floppy disk to the search path, then removed that disk
  3584. from the disk drive, a requester would ask you to insert the disk.
  3585.  
  3586. If you specify the QUIET option, PATH will not display requesters for
  3587. volumes that are not currently mounted. If PATH encounters an unmounted
  3588. volume, it will simply display the volume name. The names of any
  3589. directories on that volume included in the PATH will not be displayed.
  3590.  
  3591. The ADD option specifies directory names to be added to the current
  3592. PATH. You can add up to ten directories with one PATH ADD command (the
  3593. ADD keyword is optional); names of the directories must be separated by
  3594. at least one space. When you issue the PATH command, AmigaDOS searches
  3595. for each of the ADDed directories.
  3596.  
  3597. To replace the existing search path with a completely new one, use PATH
  3598. RESET followed by the names of the directories. The existing search
  3599. path, except for the current directory and SYS:C, is erased and the new
  3600. one is substituted.
  3601.  
  3602. The REMOVE option eliminates the named directory from the search path.
  3603.  
  3604.  
  3605. Example:
  3606.  
  3607.     1> PATH EXTRAS:Tools ADD
  3608.  
  3609. adds the Tools directory on the Extras disk to the search path of the
  3610. Shell. If the Extras disk is not in a disk drive, a requester will ask
  3611. you to insert it in any drive.
  3612.  
  3613. If you remove Extras from the drive, and enter:
  3614.  
  3615.     1> PATH
  3616.  
  3617. a list of directories in the search path will be displayed. A requester 
  3618. will ask you to insert Extras. However, if you enter:
  3619.     1> PATH QUIET
  3620.  
  3621. the list of directories in the search path will be displayed. However,
  3622. when the path comes to Extras:Tools, only the volume name, Extras:,
  3623. will appear in the list.
  3624.  
  3625.  
  3626. See also: ASSIGN
  3627. POINTER
  3628.  
  3629.  
  3630. Format:        POINTER [FROM <filename>] [EDIT] [USE] [SAVE]
  3631. [CLIPUNIT <clipboard unit>]
  3632. Template:            FROM, EDIT/S, USE/S, SAVE/S, CLIPUNIT/K
  3633. Purpose:            To change the appearance of the screen pointer.
  3634. Path:            Extras:Prefs/Pointer
  3635. Specification:
  3636.  
  3637. POINTER without any arguments or with the EDIT argument opens the
  3638. Pointer editor. The FROM argument lets you specify a file to open. This
  3639. must be a file that was previously saved with the Save As menu item of
  3640. the Pointer editor. For example, if you have saved a special
  3641. configuration of the Pointer editor to a file in the Presets drawer,
  3642. you can use the FROM argument to open that file. If the USE switch is
  3643. also given, the editor will not be opened, but the settings in the FROM
  3644. file will be used. If the SAVE switch is given, the editor will not
  3645. open, but the settings in the FROM file will be saved.
  3646.  
  3647. CLIPUNIT determines which Clipboard Unit the pointer will use during
  3648. cut and paste operations.
  3649.  
  3650.  
  3651. Example:
  3652.  
  3653.     1> POINTER Prefs/Presets/Pointer.star USE
  3654.  
  3655. loads and uses the pointer saved in the Pointer.star file. If the
  3656. system is rebooted, the previously saved pointer will appear.
  3657. PRINTER
  3658.  
  3659.  
  3660. Format:        PRINTER [FROM <filename>] [EDIT] [USE] [SAVE]
  3661. [PUBSCREEN <public screen name>) [UNIT <unit>]
  3662. Template:            FROM, EDIT/S, USE/S, SAVE/S, PUBSCREEN/K, UNIT/S
  3663. Purpose:            To specify a printer and print options.
  3664. Path:            Extras:Prefs/Printer
  3665. Specification:
  3666.  
  3667. PRINTER without any arguments or with the EDIT argument opens the
  3668. Printer editor. The FROM argument lets you specify a file to open. This
  3669. must be a file that was previously saved with the Save As menu item of
  3670. the Printer editor. For example, if you have saved a special
  3671. configuration of the Printer editor to a file in the Presets drawer,
  3672. you can use the FROM argument to open that file. If the USE switch is
  3673. also given, the editor will not be opened, but the settings in the FROM
  3674. flle will be used. If the SAVE switch is given, the editor will not
  3675. open, but the settings in the FROM file will be saved.
  3676.  
  3677. PRINTER UNIT opens the Printer editor with a Device Unit gadget added
  3678. to the editor. Select the unit to which output should be sent. If
  3679. PRINTER UNIT <unit> is specified, output will be sent to the specifed
  3680. <unit>. This option is primarily available for use with old application
  3681. programs.
  3682.  
  3683.  
  3684. Example:
  3685.  
  3686.     1> PRINTER Prefs/Presets/Printer.epson SAVE
  3687.  
  3688. loads and saves the specifcations saved in the Printer.epson file.
  3689. PRINTERGFX
  3690.  
  3691.  
  3692. Format:        PRINTERGFX [FROM <filename>] [EDIT] [USE] [SAVE]
  3693. [PUBSCREEN <public screen name>]
  3694. Template:            FROM, EDIT/S, USE/S, SAVE/S, PUBSCREEN/K
  3695. Purpose:            To specify graphic printing options.
  3696. Path:            Extras:Prefs/PrinterGfx
  3697. Specifcation:
  3698.  
  3699. PRINTERGFX without any arguments or with the EDIT argument opens the
  3700. PrinterGfx editor. The FROM argument lets you specify a file to open.
  3701. This must be a file that was previously saved with the Save As menu
  3702. item ofthe PrinterGfx editor. For example, if you have saved a special
  3703. configuration of the PrinterGfx editor to a file in the Presets drawer,
  3704. you can use the FROM argument to open that file. If the USE switch is
  3705. also given, the editor will not be opened, but the settings in the FROM
  3706. file will be used. If the SAVE switch is given, the editor will not
  3707. open, but the settings in the FROM file will be saved.
  3708.  
  3709.  
  3710. Example:
  3711.  
  3712.     1> PRINTERGFX Prefs/Presets/PrinterGfx.halftone USE
  3713.  
  3714. loads and uses the specifications saved in the PrinterGfx.halftone
  3715. file. If the system is rebooted, the last saved specifcations will be
  3716. loaded.
  3717. PRINTERPS
  3718.  
  3719.  
  3720. Format:        PRINTERPS [FROM <filename>] [EDIT] [USE] [SAVE]
  3721. [PUBSCREEN <public screen name>]
  3722. Template:            FROM, EDIT/S, USE/S, SAVE/S, PUBSCREEN/K
  3723. Purpose:            To control features ofPostScript printers.
  3724. Path:            Extras:Prefs/PrinterPS
  3725. Specification:
  3726.  
  3727. PRINTERPS without any arguments or with the EDIT argument opens the
  3728. PrinterPS editor. The PrinterPS editor enables you to control features
  3729. of PostScript printers. This editor only applies if you have a
  3730. PostScript printer and if you choose PostScript in the Printer
  3731. preferences editor. The PrinterPS editor combines PostScript specific
  3732. options for controlling text and graphic output.
  3733.  
  3734. The FROM argument lets you specify a file to open. This must be a file
  3735. that was previously saved with the Save As menu item of the PrinterPS
  3736. editor. For example, if you have saved a special configuration of the
  3737. PrinterPS editor to a file in the Presets drawer, you can use the FROM
  3738. argument to open that file. If the USE switch is also given, the editor
  3739. will not open, but the settings in the FROM file will be used. If the
  3740. SAVE switch is given, the editor will not open, but the settings in the
  3741. FROM file will be saved.
  3742.  
  3743. See the Using the Amiga Worhbench manual for more information.
  3744. PRINTFILES
  3745.  
  3746.  
  3747. Format:            PRINTFILES {[-f] <filename>}
  3748. Template:            -f/S, FILENAME/A/M
  3749. Purpose:            To send file(s) to the printer.
  3750. Path:            Extras:Tools/PrintFiles
  3751. Specification:
  3752.  
  3753. PRINTFILES prints the specified file. The -f flag turns on the form
  3754. feed mode. When printing multiple files, be sure to specify the flag
  3755. before each filename.
  3756.  
  3757.  
  3758. Example:
  3759.  
  3760.     1> PRINTFILES -f DF0:testfile -f DF0:docfile
  3761.  
  3762. prints the testfile and docfile files, stored on the disk inserted in
  3763. drive DF0:. The -f argument will add a form feed prior to printing each
  3764. file to ensure they each begin on a new page.
  3765. PROMPT
  3766.  
  3767.  
  3768. Format:            PROMPT [<prompt>]
  3769. Template:            PROMPT
  3770. Purpose:            To change the prompt string of the current Shell.
  3771. Path:            Internal
  3772. Specification:
  3773.  
  3774. PROMPT allows you to customize the prompt string, the text printed by
  3775. the Shell at the beginning of a command line. The prompt string may
  3776. contain any characters, including escape sequences.
  3777.  
  3778. In the examples in this manual, the prompt string is shown as 1>.
  3779.  
  3780. The default prompt string is:
  3781.     %N.%S>
  3782.  
  3783. which displays the Shell number, a period, the current directory, a
  3784. right angle-bracket and a space.
  3785.  
  3786. The substitutions available for the <prompt> string are:
  3787. %N    Displays the Shell number.
  3788. %S    Displays the current directory.
  3789. %R    Displays the return code for the last operation.
  3790.  
  3791. A space is not automatically added to the end of the string. If you
  3792. want a space between the prompt and typed-in text, place it in the
  3793. string, and enclose the string in double quotes.
  3794.  
  3795. You can embed commands in the prompt string by enclosing the command in
  3796. backward apostrophes (`).
  3797.  
  3798. PROMPT alone, without a string argument, resets the prompt to the
  3799. default.
  3800.  
  3801. Example 1:
  3802.  
  3803.     1>  PROMPT  %I%I
  3804.  
  3805. Only the Shell number is shown. The > is removed from the prompt.
  3806.  
  3807. Example 2:
  3808.  
  3809.     1> PROMPT  "%N.%S.%R> "
  3810.     1.SYS:.0>
  3811.  
  3812. The Shell number, current directory, and return code of the previous
  3813. command are shown. A space is included after the >.
  3814.  
  3815. Example 3 :
  3816.  
  3817.     1> PROMPT  " `date`> "
  3818.     Tuesday 11-5ep-90 14:36:39>
  3819.  
  3820. The DATE command is executed and used as the prompt. The prompt is not
  3821. updated as the time changes. You would have to execute the PROMPT
  3822. command again to update the Shell prompt.
  3823. PROTECT
  3824.  
  3825.  
  3826. Format:        PROTECT [FILE] <file|pattern> [FLAGS][+|-]
  3827. [<flags>] [ADD|SUB] [ALL] [QUIET]
  3828. Template:            FlLE/A, FLAGS, ADD/S, SUB/S, ALL/S, QUIET/S
  3829. Purpose:            To change the protection bits of a file.
  3830. Path:            C:PROTECT
  3831. Specification:
  3832.  
  3833. All files have a series of protection bits stored with them which
  3834. control their attributes. These bits can be altered to indicate the
  3835. type of file and the file operations permitted. PROTECT is used to set
  3836. or clear the protection bits of a file.
  3837.  
  3838. The protection bits are represented by letters:
  3839. s    The file is a script.
  3840. p    The file is a pure command and can be made resident.
  3841. a    The file has been archived.
  3842. r    The file can be read.
  3843. w    The file can be written to (altered).
  3844. e    The file is executable (a program).
  3845. d    The file can be deleted.
  3846.  
  3847. To see the protection bits associated with a file, use the LIST
  3848. command. The protection field is displayed with set (on) bits shown by
  3849. their letters and clear (off) bits shown by hyphens. For example, a fle
  3850. that is readable, writeable and deletable, will have ----rw-d in the
  3851. protection feld.
  3852.  
  3853. To specify the entire protection field at once, give the letters of the
  3854. bits you want set as the FLAGS argument, without any other keywords.
  3855. The named bits will be set, and all the others will be cleared.
  3856.  
  3857. The symbols + and - (or the equivalent keywords ADD and SUB) are used
  3858. to control specific bits without affecting the state of unspecified
  3859. bits. Follow + or - with the letters ofthe bit(s) to set or clear,
  3860. respectively, and only those bits will be changed. Don't put a space
  3861. after the symbol or between the letters. The order ofthe letters does
  3862. not matter. ADD and SUB work similarly, but there must be a space
  3863. between the keyword and the letters. You cannot both set and clear bits
  3864. in the same command.
  3865.  
  3866. The ALL option adds or removes the specified protection bits from all
  3867. the files in the specified directory. The QUIET option suppresses the
  3868. screen output.
  3869.  
  3870.  
  3871. Example 1:
  3872.  
  3873.     1> PROTECT DF0:Memo +rw
  3874.  
  3875. sets only the protection bits r (readable) and w (writeable) to the
  3876. file Memo on DF0:. No other protection bits are changed.
  3877. Example 2:
  3878.  
  3879.     1> PROTECT L:#? e SUB
  3880.  
  3881. clears the e (executable) protection bit from all the files in the L:
  3882. directory.
  3883.  
  3884.  
  3885. Example 3:
  3886.  
  3887.     1> PROTECT Work:Paint rwed
  3888.  
  3889. The protection status of Paint becomes "----rwed".
  3890.  
  3891.  
  3892. See Also: LIST
  3893. QUIT
  3894.  
  3895.  
  3896. Format:            QUIT [<return code>]
  3897. Template:            RC/N
  3898. Purpose:        To exit from a script file with a specified return
  3899. code.
  3900. Path:            Internal
  3901. Specification:
  3902.  
  3903. QUIT is used to stop the execution of the script upon the specified
  3904. return code. The default return code is zero. It is recommended that
  3905. you use the standard return code values of 5, 10 and 20.
  3906.  
  3907.  
  3908. Example:
  3909.  
  3910.     ASK "Do you want to stop now?"
  3911.     IF  WARN
  3912.         QUIT 5
  3913.     ENDIF
  3914.     ECHO  "OK"
  3915.     ECHO "The script is continuing.'
  3916.  
  3917. If you press Y at the prompt, the script will be aborted, as WARN is
  3918. equal to a return code of 5. If you press N or press Return:
  3919.  
  3920.     OK
  3921.     The script is continuing.
  3922.  
  3923. will be displayed in the Shell window.
  3924. RELABEL
  3925.  
  3926.  
  3927. Format:            RELABEL [DRIVE] <drive> [NAME] <name>
  3928. Template:            DRIVE/A,NAME/A
  3929. Purpose:            To change the volume name of a disk.
  3930. Path:            C:RELABEL
  3931. Specification:
  3932.  
  3933. RELABEL changes the volume name of the disk in the given drive to the
  3934. <name> specified. Volume names are set initially when you format a
  3935. disk.
  3936.  
  3937. If you have a floppy disk system with only one disk drive, be sure to
  3938. specify the disks by volume name, instead of drive name.
  3939.  
  3940.  
  3941. Examples:
  3942.  
  3943.     1> RELABEL Workbench: MyDisk
  3944.  
  3945. changes the name of the Workbench disk to MyDisk. Notice that you don't
  3946. need the colon after the second name.
  3947.  
  3948.     1> RELABEL DF2: DataDisk
  3949.  
  3950. changes the name of the disk in DF2: to DataDisk.
  3951. REMRAD
  3952.  
  3953.  
  3954. Format:            REMRAD [<device>] [FORCE]
  3955. Template:            DEVICE,FORCE/S
  3956. Purpose:            To remove the recoverable ramdrive.device.
  3957. Path:            C:REMRAD
  3958. Specification:
  3959.  
  3960. If you want to remove the recoverable ramdrive.device (usually mounted
  3961. as RAD:) from memory, and you do not want to turn the system off, you
  3962. can use the REMRAD command. If you have mounted more than one
  3963. recoverable ramdrive.device, use the DEVICE specification.
  3964.  
  3965. REMRAD commands the ramdrive.device to delete all of its files and
  3966. become inactive. The next time the Amiga is rebooted, the
  3967. ramdrive.device is removed from memory completely. If the device is in
  3968. use at the time the REMRAD command is given, the operation will abort
  3969. with a device in use message. To remove it even if it is in use, you
  3970. must use the FORCE option.
  3971. RENAME
  3972.  
  3973.  
  3974. Format:            RENAME [{FROM}] <name> [TO|AS] <name> [QUlET]
  3975. Template:            FROM/A/M, TO=AS/A, QUIET/S
  3976. Purpose:            To change the name of a file or directory.
  3977. Path:            C:RENAME
  3978. Specification:
  3979.  
  3980. RENAME renames the FROM file or directory with the specifed TO name.
  3981. FROM and TO must be on the same disk. If the name refers to a
  3982. directory, RENAME leaves the contents of the directory unchanged (the
  3983. directories and files within that directory keep the same names and
  3984. contents).
  3985.  
  3986. If you rename a directory, or if you use RENAME to give a file another
  3987. directory name (for example, you rename :Bill/letter to :Mary/Letter),
  3988. AmigaDOS changes the position of that directory or file in the filing
  3989. system hierarchy.
  3990.  
  3991. The colon before the directory indicates that the directory is in the
  3992. root directory.
  3993.  
  3994. Example 1:
  3995.  
  3996.     1> RENAME Work/Prog1 AS :Arthur/Example                           
  3997.      
  3998. renames the file Prog1 as Example, and moves it from the Work directory
  3999. to the Arthur directory. The Arthur directory must exist in the root
  4000. directory for this command to work.
  4001.  
  4002.  
  4003. Example 2:
  4004.  
  4005.     1> RENAME 7.2Fax 8.16Fax 9.22Fax TO Faxes
  4006.  
  4007. moves the 7.2Fax, 8.16Fax, and 9.22Fax files to the Faxes directory.
  4008. The Faxes directory must already exist.
  4009. REQUESTCHOICE
  4010.  
  4011.  
  4012. Format:        REQUESTCHOICE <title> <body> <gadgets> [PUBSCREEN
  4013. <public screen name>]
  4014. Template:            TITLE/A, BODY/A, GADGETS/A, PUBSCREEN/K
  4015. Purpose:        To allow AmigaDOS and ARexx scripts to use the
  4016. Intuition EasyRequest() feature.
  4017. Path:            C:REQUESTCHOICE
  4018. Specifcation:
  4019.  
  4020. REQUESTCHOICE allows AmigaDOS and ARexx scripts to use the Intiution
  4021. EasyRequest () feature.
  4022.  
  4023. The <title> argument specifies the title of the requester.
  4024.  
  4025. The <body> argument specifes the text ofthe requester. Linefeeds can be
  4026. embedded using *n.
  4027.  
  4028. The <gadgets> argument specifies the text for the different gadgets.
  4029. The gadget labels are separated with |.
  4030.  
  4031. The number of the selected gadget is printed as a result to the
  4032. console. For evaluation in a script file you can redirect this output
  4033. into an environment variable. If the requester could not be opened, the
  4034. command will generate a return code of 20.
  4035.  
  4036. REQUESTCHOICE is valid on Workbench 3.0 level software.
  4037.  
  4038.  
  4039. Examples:
  4040.  
  4041. 1> RequestChoice >ENV:rcnum "New Title" "This is my
  4042. requester,*nselect a gadget" "OK|Maybe|Cancel" 
  4043. REQUESTFILE
  4044.  
  4045.  
  4046. Format:        REQUESTFILE [DRAWER <drawer name>] [FILE <file>]
  4047. [PATTERN <pattern>] [TITLE <title>] [POSITIVE
  4048. <text>) [NEGATIVE <text>] [ACCEPTPATTERN <pattern>]
  4049. [REJECTPATTERN <pattern>] [SAVEMODE) [MULTISELECT]
  4050. [DRAWERSONLY] [NOICONS] [PUBSCREEN <public screen
  4051. name>]
  4052. Template:        DRAWER, FILE/K, PATTERN/K, TITLE/K, POSITIVE/K,
  4053. NEGATIVE/K, ACCEPTPATTERN/K, REJECTPATTERN/K,
  4054. SAVEMODE/S, MULTISELECT/S, DRAWERSONLY/S,
  4055. NOICONS/S, PUBSCREEN/K
  4056. Purpose:        To allow AmigaDOS and ARexx scripts to use the ASL
  4057. file requester.
  4058. Path:            C:REQUESTFlLE
  4059. Specification:
  4060.  
  4061. REQUESTFILE allows AmigaDOS and ARexx scripts to use the ASL file
  4062. requester.
  4063.  
  4064. The DRAWER argument specifies the initial contents of the Drawer gadget
  4065.  
  4066. The FILE option specifies the initial contents of the File gadget.
  4067.  
  4068. The PATTERN option allows the use of a standard AmigaDOS pattern. It
  4069. specifies the initial contents of the Pattern gadget. If this option is
  4070. not provided, the file requester will not have any Pattern gadget.
  4071.  
  4072. The TITLE option specifies the title of the requester.
  4073.  
  4074. The POSITIVE option specifies the text to appear in the positive (left)
  4075. choice in the file requester.
  4076.  
  4077. The NEGATIVE option specifies the text to appear in the negative
  4078. (right) choice in the file requester.
  4079.  
  4080. The ACCEPTPATTERN option specifies a standard AmigaDOS pattern. Only
  4081. files matching this pattern will be displayed in the file requester.
  4082.  
  4083. The REJECTPATTERN option specifies a standard AmigaDOS pattern. Files
  4084. matching this pattern will not be displayed in the file requester.
  4085.  
  4086. If SAVEMODE is specified, the requester will operate in save mode. If
  4087. MULTlSELECT is specifed, the requester will allow multiple files to be
  4088. selected at once. If DRAWERSONLY is specifed, the requester will not
  4089. have a File gadget. This effectively turns the file requester into a
  4090. directory requester. If NOICONS is specified, the requester will not
  4091. display icons (.info files).
  4092.  
  4093. The selected files are returned on the command line, enclosed in double
  4094. quotes and separated with spaces. The command generates a return code
  4095. of 0 if the user selected a file, or 5 if the user cancelled the
  4096. requester.
  4097.  
  4098.  
  4099. REQUESTFILE is valid on Workbench 3.0 level software.
  4100. RESIDENT
  4101.  
  4102.  
  4103. Format:        RESlDENT [<resident name>] [<filename>] [REMOVE]
  4104. [ADD] [REPLACE] [PURE|FORCE] [SYSTEM]
  4105. Template:        NAME, FlLE, REMOVE/S, ADD/S, REPLACE/S,
  4106. PURE=FORCE/S, SYSTEM/S
  4107. Purpose:            To display and modify the list of resident commands
  4108. Path:            Internal
  4109. Specification:
  4110.  
  4111. RESIDENT is used to load commands and add them to the resident list
  4112. maintained by the Shell. This allows the command to be executed without
  4113. it having to be reloaded from disk each time. This eliminates the time
  4114. it takes to load the command and reduces memory use when multitasking.
  4115.  
  4116. To be made resident, a command should be both re-entrant and
  4117. re-executable. A re-entrant command can properly support independent
  4118. use by two or more programs at the same time.
  4119.  
  4120. A re-executable command does not have to be reloaded to be executed
  4121. again. Commands that have these characteristics are called pure and
  4122. have the p (pure) protection bit set.
  4123.  
  4124. LIST the C: directory to check for the presence of the p protection bit
  4125. to determine which commands are pure.
  4126.  
  4127. Many of the commands in the C: directory, as well as the MORE command
  4128. in Utilities, are pure commands and can be made resident. If a command
  4129. does not have its pure bit set, it probably cannot be made resident
  4130. safely. (Just setting the pure bit does not make a command or program
  4131. pure).
  4132.  
  4133. The REPLACE option is the default option and does not need to be
  4134. explicitly stated. If RESlDENT is invoked with no options, it lists the
  4135. programs on the resident list. If no <resident name> is specifed (i.e.,
  4136. just a filename is specified), RESIDENT will use the filename portion
  4137. as the name on the resident list. The full path to the file must be
  4138. used.
  4139.  
  4140. If a <resident name> is specified and RESIDENT finds a program with
  4141. that name already on the list, it will attempt to replace the command.
  4142. That <resident name> must then be used to reference the resident
  4143. version of the command. The replacement will succeed only if the
  4144. already-resident command is not in use.
  4145.  
  4146. To override REPLACEment and make several versions of a command resident
  4147. simultaneously, use the ADD option, giving a different <resident name>
  4148. for each version loaded.
  4149.  
  4150. If the SYSTEM option is specified, the command will be added to the
  4151. system portion of the resident list. Any commands added to the resident
  4152. list with the SYSTEM option cannot be removed. To list SYSTEM files on
  4153. the RESlDENT list, you must specify the SYSTEM option.
  4154. The PURE option forces RESIDENT to load commands which are not marked
  4155. as pure (i.e., they do not have their pure bit set), and can be used
  4156. experimentally to test the pureness of other commands and programs.
  4157.  
  4158. Use the PURE option with caution. Remember that in order for a command
  4159. to be made RESlDENT, it must be both re-entrant and re-executable.
  4160. Although it is unlikely, some of your prog-rams may be pure enough to
  4161. be fully re-entrant and usable by more than one process at the same
  4162. time. Other programs may not be fully re-entrant but may be pure enough
  4163. to be re-executable. Such commands can be made RESIDENT, but you must
  4164. be extremely careful to use the command in only one process at a time.
  4165.  
  4166. The availability of Internal commands can also be controlled with
  4167. RESIDENT. To deactivate an Internal command (for example, if an
  4168. application has its own command of the same name), use RESIDENT
  4169. <Command> REMOVE. AmigaDOS will no longer recognize the Internal
  4170. command. The AmigaDOS command can be reactivated with the REPLACE
  4171. option.
  4172.  
  4173.  
  4174. Example 1:
  4175.  
  4176.     1> RESIDENT C:COPY
  4177.  
  4178. makes the COPY command resident (replaces any previous version).
  4179.  
  4180.  
  4181. Example 2:
  4182.  
  4183.     1> RESIDENT Copy2 DF1:C/COPY ADD
  4184.  
  4185. adds another version of COPY to the resident list, under the name
  4186. Copy2.
  4187.  
  4188.  
  4189. Example 3:
  4190.  
  4191.     1> RESIDENT Xdir DF1:C/Xdir PURE
  4192.  
  4193. makes an experimental, non-pure version of the DIR command resident.
  4194.  
  4195.  
  4196. Example 4:
  4197.  
  4198.     1> RESIDENT CD REMOVE
  4199.  
  4200. makes the Internal CD command unavailable.
  4201.  
  4202.  
  4203. Example 5 :
  4204.  
  4205.     1> RESIDENT CD REPLACE
  4206.  
  4207. restores the CD command to the system.
  4208.  
  4209.  
  4210. See Also: PROTECT, LIST.
  4211. RUN
  4212.  
  4213.  
  4214. Format:            RUN <command> [+{<command>}]
  4215. Template:            COMMAND/F
  4216. Purpose:            To execute commands as background processes.
  4217. Path:            Internal
  4218. Specification:
  4219.  
  4220. RUN is used to launch background processes. A background process does
  4221. not open its own window for input or output and does not take over the
  4222. parent Shell.
  4223.  
  4224. RUN attempts to execute the <command> and any arguments entered on the
  4225. command line. You can RUN multiple commands by separating them with
  4226. plus signs (+). If you press Return after a plus sign, RUN will
  4227. interpret the next line as a continuation of the same command line.
  4228.  
  4229. To allow the closing of the Shell window in which the process was
  4230. started, redirect the output of RUN with the RUN >NlL: <command>.
  4231.  
  4232. A new background Shell has the same search path and command stack size
  4233. as the Shell from which RUN was given.
  4234.  
  4235. You can RUN commands stored on the resident list. For speed, resident
  4236. commands are checked before commands in the command path. A Shell
  4237. started with RUN NEWSHELL still uses the default startup file,
  4238. S:Shell-startup.
  4239.  
  4240.  
  4241. Example 1:
  4242.  
  4243.     1> RUN COPY Text PRT:+
  4244.     DELETE Text +
  4245.     ECHO "Printing finished"
  4246.  
  4247. prints the Text file by copying it to the printer device, deletes it,
  4248. then displays the given message. Plus signs are used to concatenate the
  4249. command lines.
  4250.  
  4251.  
  4252. Example 2:
  4253.  
  4254.     1>  RUN EXECUTE Comseq
  4255.  
  4256. executes, in the background, all the commands in the file Comseq.
  4257. SCREENMODE
  4258.  
  4259.  
  4260. Format:            SCREENMODE [FROM <filename>] [EDIT] [USE] [SAVE]
  4261. Template:            FROM, EDIT/S, USE/S, SAVE/S
  4262. Purpose:            To select a display mode.
  4263. Path:            Extras:Prefs/ScreenMode
  4264. Specification:
  4265.  
  4266. SCREENMODE without any arguments, or with the EDIT argument opens the
  4267. ScreenMode editor. The FROM argument lets you specify a file to open.
  4268. This must be a file that was previously saved with the Save As menu
  4269. item of the ScreenMode editor. For example, if you have saved a special
  4270. eonfiguration of the ScreenMode editor to a file in the Presets drawer,
  4271. you can use the FROM argument to open that file. If the USE switch is
  4272. also given, the editor will not be opened, but the settings in the FROM
  4273. file will be used. If the SAVE switch is given, the editor will not
  4274. open, but the settings in the FROM file will be saved.
  4275.  
  4276.  
  4277. Example:
  4278.  
  4279.     1> SCREENMODE Prefs/Presets/ScreenMode.Hires USE
  4280.  
  4281. You will be prompted to close all non-drawer windows, and the system
  4282. will reset and use the settings saved in the ScreenMode.Hires file. The
  4283. editor window will not open. When the system is rebooted, the display
  4284. mode will return to the last selection saved.
  4285. SEARCH
  4286.  
  4287.  
  4288. Format:        SEARCH [FROM] <name|pattern> [SEARCH]
  4289. <string|pattern> [ALL] [NONUM] [QUIET] [QUICK]
  4290. [FILE] [PATTERN]
  4291. Template:        FROM/M, SEARCH/A, ALL/S, NONUM/S, QUIET/S, QUICK/S,
  4292. FILE/S, PATTERN/S
  4293. Purpose:        To look for the specified text string in the files
  4294. of the specified directory or directories.
  4295. Path:            C:SEARCH
  4296. Specification:
  4297.  
  4298. SEARCH looks through all the files in the FROM directory for the given
  4299. SEARCH string. (The FROM and SEARCH keywords are optional.) If the ALL
  4300. switch is given, SEARCH also looks through all the subdirectories of
  4301. the FROM directory. SEARCH displays the name of the file being searched
  4302. and any line that contains the text sought. You must place quotation
  4303. marks around any search text containing a space. The search is case
  4304. insensitive (capitalization is ignored).
  4305.  
  4306. The options are:
  4307. NONUM    Line numbers are not printed with the strings.
  4308. QUIET    Searches quietly; filenames being searched are not displayed.
  4309. QUICK    Uses a more compact output format.
  4310. FILE Looks for a file by the specified name, rather than for a
  4311. string in the file.
  4312. PATTERN    Uses pattern matching in the search.
  4313.  
  4314. SEARCH leaves a 0 in the condition flag if the object is found, and a 5
  4315. (WARN) otherwise. This makes it useful in scripts. To abandon the
  4316. search of the current file and continue to the next file, if any, press
  4317. Ctrl+D. SEARCH is aborted when a Ctrl+C is pressed.
  4318. SERIAL
  4319.  
  4320.  
  4321. Format:        SERIAL [FROM <filename>) [EDIT] [USE] [SAVE]
  4322. [PUBSCREEN <public screen name>] [UNIT <unit>]
  4323. Template:            FROM, EDIT/S, USE/S, SAVE/S, PUBSCREEN/K, INIT/S
  4324. Purpose:        To set the specifications for communication through
  4325. the serial port.
  4326. Path:            Extras:Prefs/Serial
  4327. Specifcation:
  4328.  
  4329. SERIAL without any arguments or with the EDIT argument opens the Serial
  4330. editor. The FROM argument lets you specify a file to open. This must be
  4331. a file that was previously saved with the Save As menu item of the
  4332. Serial editor. For example, if you have saved a special configuration
  4333. of the Serial editor to a file in the Presets drawer, you can use the
  4334. FROM argument to open that file. If the USE switch is also given, the
  4335. editor will not open, but the settings in the FROM file will be used.
  4336. If the SAVE switch is given, the editor will not open, but the settings
  4337. in the FROM file will be saved.
  4338.  
  4339. SERlAL UNIT opens the Serial editor with a Device Unit gadget added to
  4340. the editor. Select the unit to which output should be sent. If SERIAL
  4341. UNIT <unit> is specifed, output will be sent to the specified <unit>.
  4342.  
  4343.  
  4344. Example:
  4345.  
  4346.     1> SERIAL Prefs/Presets/Serial.9600 USE
  4347.  
  4348. loads and uses the specifcations saved in the Serial.9600 file. If the
  4349. system is rebooted, the last saved settings will take effect.
  4350. SET
  4351.  
  4352.  
  4353. Format:            SET [<name>] [<string>]
  4354. Template:            NAME, STRING/F
  4355. Purpose:            To set a local variable.
  4356. Path:            Internal
  4357. Specification:
  4358.  
  4359. SET with <name> and <string> arguments creates a new environment
  4360. variable. The first word after SET is taken as the <name>. Everything
  4361. else on the command line is taken as the <string> argument. Quotation
  4362. marks are not required.
  4363.  
  4364. SET with no arguments lists the current local variables.
  4365.  
  4366. An environment variable created with SET is local to the Shell in which
  4367. it was created. If you create a new Shell with the NEWSHELL command,
  4368. that Shell will also recognize any variables created in its parent
  4369. Shell. However, if you create a new Shell with the Execute Command menu
  4370. item or by opening the Shell icon, variables created with SET will not
  4371. be recognized in the new Shells.
  4372.  
  4373. You can call environment variables in a script or on a command line by
  4374. placing a dollar sign ($) in front of the variable name.
  4375.  
  4376. To remove a local variable definition, use the UNSET command.
  4377.  
  4378.  
  4379. Examples:
  4380.  
  4381.     1> SET Origin This process launched from icon
  4382.  
  4383. creates the local variable Origin which stores a reminder that a Shell
  4384. was invoked from an icon rather than a NEWSHELL.
  4385.  
  4386.     1> ECHO $Origin
  4387.     This process launched from icon
  4388.  
  4389.  
  4390. See Also: GET, UNSET
  4391. SETCLOCK
  4392.  
  4393.  
  4394. Format:            SETCLOCK LOAD|SAVE|RESET
  4395. Template:            LOAD/S, SAVE/S, RESET/S
  4396. Purpose:        To set or read the battery backed-up hardware
  4397. clock.
  4398. Path:            C:SETCLOCK
  4399. Specification:
  4400.  
  4401. SETCLOCK SAVE sets the date and time of the battery backed-up hardware
  4402. clock from the current system time (saved with the Time editor or with
  4403. the DATE command). SETCLOCK SAVE is typically used after a DATE
  4404. command.
  4405.  
  4406. SETCLOCK LOAD sets the current system time from the battery backed-up
  4407. clock. In systems using Kickstart 2.0 or later, this is done
  4408. automatically during the boot process.
  4409.  
  4410. The RESET option resets the clock completely. This may be necessary if
  4411. a poorly written program that does not follow the rules turns the clock
  4412. off or sets the test bit of the clock.
  4413.  
  4414.  
  4415. Example:
  4416.  
  4417.     1> DATE 17-Aug-92 05:45:54
  4418.     1> SETCLOCK SAVE
  4419.  
  4420. saves the date, August 17, 1992, and the time, 5:45 a.m., to the
  4421. battery backed-up hardware clock. That clock keeps time even when the
  4422. Amiga is powered off. When the system is booted, the system clock is
  4423. set with the time saved in the hardware clock.
  4424.  
  4425. Amiga 500s do not have battery backed-up clocks, unless an A501 RAM
  4426. expansion cartridge has been installed.
  4427.  
  4428.  
  4429. See also: DATE
  4430. SETDATE
  4431.  
  4432.  
  4433. Format:            SETDATE <file|pattern> [<date>] [<time>] [ALL]
  4434. Template:            FILE/A, WEEKDAY, DATE, TIME, ALL/S
  4435. Purpose:            To change a file or directory's timestamp.
  4436. Path:            C:SETDATE
  4437. Specification:
  4438.  
  4439. SETDATE changes the timestamp (date and time of creation or last
  4440. change) of a file or directory. SETDATE <file> changes the date/time of
  4441. the file to the current system date/time. SETDATE ALL changes the date
  4442. and time of all the files in the specified directory.
  4443.  
  4444. SETDATE does not affect the software or hardware clocks.
  4445.  
  4446. The output of the DATE command may be used as input to SETDATE.
  4447.  
  4448.  
  4449. Example 1:
  4450.  
  4451.     1> SETDATE TestFile
  4452.  
  4453. changes the date and time associated with TestFile to the current date
  4454. and time.
  4455.  
  4456.  
  4457. Example 2 :
  4458.  
  4459.     1> SETDATE TestFile 16-09-89 15:25:52
  4460.  
  4461. changes the date and time associated with TestFile to September 16,
  4462. 1989, 3:25 p.m.
  4463.  
  4464.  
  4465. See Also: DATE
  4466. SETENV
  4467.  
  4468.  
  4469. Format:            SETENV [<name>] [<string>]
  4470. Template:            NAME, STRING/F
  4471. Purpose:            To set a global variable.
  4472. Path:            Internal
  4473. Specification:
  4474.  
  4475. SETENV with <name> and <string> arguments creates a new global
  4476. environment variable. The first word after SETENV is taken as the
  4477. <name>. Everything else on the command line is taken as the <string>
  4478. argument. Quotation marks are not required. Comments (statements
  4479. prefaced with a semicolon (;)) are not allowed on a SETENV comand line.
  4480. This includes command lines that are part of a script.
  4481.  
  4482. SETENV with no arguments lists the current global variables. Global
  4483. variables are stored in the ENV: directory and are used by all
  4484. processes. However, if a local variable (defined by SET) and a global
  4485. variable share the same name, the local variable will be used.
  4486.  
  4487. Environment variables are called by scripts or other commands by
  4488. including a dollar sign ($) in front of the variable name.
  4489.  
  4490. To remove a global variable definition, use the UNSETENV command.
  4491.  
  4492.  
  4493. Example 1:
  4494.  
  4495.     1> SETENV Editor Extras:Tools/MEmacs
  4496.  
  4497. creates the environment variable Editor which can be used with the MORE
  4498. utility. This specifies the editor as being MEmacs, located in the
  4499. Tools drawer of the Extras disk. The variable Editor will be available
  4500. in any Shell.
  4501.  
  4502.  
  4503. Example 2:
  4504.  
  4505.     1> SETENV Editor C:ED
  4506.  
  4507. same as above, only the editor specified is ED.
  4508.  
  4509.     1> ECHO $Editor
  4510.     C:ED
  4511.  
  4512. See Also: GETENV, UNSETENV
  4513. SETFONT
  4514.  
  4515.  
  4516. Format:        SETFONT <font> <size> [SCALE] [PROP] [ITALIC]
  4517. [BOLD] [UNDERLINE]
  4518. Template:        NAME/A, SIZE/N/A, SCALE/S, PROP/S, ITALIC/S,
  4519. BOLD/S, UNDERLINE/S
  4520. Purpose:            To change the Shell font.
  4521. Path:            C:SETFONT
  4522. Specification:
  4523.  
  4524. SETFONT lets you change the font used in a particular Shell window,
  4525. overriding the System Default Text setting specified in the Font
  4526. editor. SETFONT is only effective in the window in which it is invoked.
  4527.  
  4528. You must specify both a font name and a size when using the SETFONT
  4529. command. The other options are:
  4530.  
  4531. SCALE    Enables bitmap font scaling.
  4532. PROP        Allows proportional fonts.
  4533. ITALIC    The font will be italic.
  4534. BOLD        The font will be boldface.
  4535. UNDERLINE    The font will be underlined.
  4536.  
  4537. Invoking SETFONT will clear the Shell window of its current contents
  4538. and display a new prompt, in the new font, at the top of the window.
  4539.  
  4540.  
  4541. Example:
  4542.  
  4543.     1> SETFONT Topaz 13 BOLD UNDERLINE
  4544.  
  4545. The Shell window will clear, and the new prompt will be in 13 point
  4546. Topaz, underlined and boldface.
  4547. SETKEYBOARD
  4548.  
  4549.  
  4550. Format:            SETKEYBOARD <keymap name>
  4551. Template:            KEYMAP/A
  4552. Purpose:            To set the keymap for the Shell.
  4553. Path:            C:SETKEYBOARD
  4554. Specification:
  4555.  
  4556. SETKEYBOARD specifies the keymap used by the Amiga. The available files
  4557. are listed below:
  4558.  
  4559. Keymap          Keyboard
  4560.  
  4561. cdn            French Canadian
  4562. chl            Swiss French
  4563. ch2            Swiss German
  4564. d            German
  4565. dk            Danish
  4566. e            English
  4567. f            French
  4568. gb            Great Britain
  4569. i            Italian
  4570. n            Norwegian
  4571. po            Portuguese
  4572. s            Swedish
  4573. usa0            (for programs developed before V1.0)
  4574. usa            American
  4575. usa2            Dvorak
  4576.  
  4577. To have the system always use a keymap other than the default, add the
  4578. SETKEYBOARD command to your Startup-sequence file, or use the Input
  4579. editor for a permanent choice.                  
  4580.  
  4581.  
  4582. Example:                                                      
  4583. To change to a French Canadian keymap, enter:                 
  4584.  
  4585.     1> SETKEYBOARD cdn
  4586.  
  4587. The keymap file must be in the KEYMAPS: directory for SETKEYBOARD to
  4588. find it.
  4589. SETPATCH
  4590.  
  4591.  
  4592. Format:            SETPATCH [QUIET] [NOCACHE) [REVERSE]
  4593. Template:            QUIET/S,NOCACHE/S,REVERSE/S
  4594. Purpose:            To make ROM patches in system software.
  4595. Path:            C:SETPATCH                                       
  4596. Specification:
  4597.  
  4598. SETPATCH installs temporary modifications to the operating system. If
  4599. needed, it must be run at the beginning of the Startup-sequence file.
  4600. Updated versions of SETPATCH will be made available when necessary as
  4601. AmigaDOS development continues.
  4602.  
  4603. If QUIET is specified, no output will be sent to the screen.
  4604.  
  4605. NOCACHE will prevent Data Cache from being turned on on 68030 systems
  4606. made by some third party vendors.
  4607.  
  4608. REVERSE allocates memory from the top. This option is primarily
  4609. available for CDTV developers.
  4610. SKIP
  4611.  
  4612.  
  4613. Format:            SKIP [<label>] [BACK]
  4614. Template:            LABEL, BACK/S
  4615. Purpose:            To skip to a label when executing script files.
  4616. Path:            Internal
  4617. Specification:
  4618.  
  4619. SKIP is used in scripts to allow you to skip ahead in the script to a
  4620. <label> defined by a LAB statement. If no <label> is specified, SKIP
  4621. jumps to the next LAB statement.
  4622.  
  4623. SKIP always searches forward from the current line of the file.
  4624. However, when the BACK option is used, SKIP starts searching for the
  4625. label from the beginning of the file. This allows SKlPs to points prior
  4626. to the SKIP command.
  4627.  
  4628. You can only SKIP as far back as the last EXECUTE statement. If there
  4629. are no EXECUTE statements in a script, you will SKIP back to the
  4630. beginning of the file.
  4631.  
  4632. If SKIP does not fnd the label you specifed, the command sequence
  4633. terminates and the message "Label <label> not found by Skip" is
  4634. displayed.
  4635.  
  4636. Example:
  4637. Assume you have the following script, called CheckFile:
  4638.  
  4639.     .KEY name
  4640.     IF exists <name>
  4641.         SKIP message
  4642.     ELSE
  4643.         ECHO "<name> is not in this directory."
  4644.     QUIT
  4645.     ENDIF
  4646.     LAB message
  4647.     ECHO "The <name> file does exist."
  4648.  
  4649. You can run the script by entering:
  4650.  
  4651.     1> EXECUTE CheckFile Document
  4652.  
  4653. If the Document file exists in the current directory, the execution of
  4654. the script will SKIP ahead to the LAB command. The message:
  4655.  
  4656.     The Document file does exist
  4657.  
  4658. will be displayed in the Shell window.
  4659.  
  4660. If the Document file is not in the current directory, the execution of
  4661. the script will jump to the line after the ELSE statement, and the
  4662. message:
  4663.     Document is not in this directory
  4664.  
  4665. will be displayed.
  4666.  
  4667. See also: EXECUTE, LAB
  4668. SORT
  4669.  
  4670.  
  4671. Format:        SORT [FROM] <file|pattern> [TO] <filename>
  4672. [COLSTART <n>) [CASE] [NUMERIC)
  4673. Template:            FROM/A, TO/A, COLSTART/K, CASE/S, NUMERIC/S
  4674. Purpose:            To alphabetically sort the lines of a file.
  4675. Path:            C:SORT
  4676. Specification:
  4677.  
  4678. SORT will sort the FROM file alphabetically, line by line, sending the
  4679. sorted results to the TO file. SORT assumes the file is a normal text
  4680. file in which lines are separated by fteturns or line feeds. SORT
  4681. normally disregards capitalization. If the CASE switch is given,
  4682. capitalized items will be output first.
  4683.  
  4684. The COLSTART keyword allows you to specify the character column at
  4685. which the comparison will begin. SORT compares the lines from that
  4686. point on, and comparison will wrap around to the beginning of the line
  4687. if the lines being compared match to the end.
  4688.  
  4689. When the NUMERIC option is specified, the lines are interpreted as
  4690. numbers from the first column reading to the right, stopping at the
  4691. first non-numeric character. Lines not beginning with numbers are
  4692. treated as 0. The lines are output in numerical order. If the CASE
  4693. switch is given with NUMERlC, CASE is ignored.
  4694.  
  4695.  
  4696. Example:
  4697.  
  4698.     1> SORT DF0:Glossary DF0:Glossary.alpha
  4699.  
  4700. sorts the lines in the Glossary file, arranges them alphabetically, and
  4701. outputs them to a new file called Glossary.alpha. The case of the words
  4702. is disregarded.
  4703. SOUND
  4704.  
  4705.  
  4706. Format:        SOUND [FROM <filename>] [EDIT] [USE] [SAVE]
  4707. [PUBSCREEN <public screen name>]
  4708. Template:            FROM, EDIT/S, USE/S, SAVE/S, PUBSCREEN/K
  4709. Purpose:        To control type of sound and sound attributes
  4710. produced by Amiga.
  4711. Path:            Extras:Prefs/Sound
  4712. Specifcation:
  4713.  
  4714. The Sound editor allows you to determine the type of sound and its
  4715. attributes that you want your Amiga to produce when the system issues
  4716. an application prompt or error notification.
  4717.  
  4718. SOUND without any arguments or with the EDIT argument opens the Sound
  4719. editor. The FROM argument lets you specify a file to open. This must be
  4720. a file that was previously saved with the Save As menu item of the
  4721. Sound editor. For example, if you have saved a special configuration of
  4722. the Sound editor to a file in the Presets drawer, you can use the FROM
  4723. argument to open that file. If the USE switch is also given, the editor
  4724. will not be opened, but the settings in the FROM file will be used. If
  4725. the SAVE switch is given, the editor will not open, but the settings in
  4726. the FROM file will be saved.
  4727. STACK
  4728.  
  4729.  
  4730. Format:            STACK [<stack size>]
  4731. Template:            SIZE/N
  4732. Purpose:        To display or set the stack size within the current
  4733. Shell.
  4734. Path:            Internal
  4735. Specifcation:
  4736.  
  4737. When you run a program, it uses a certain amount of stack, a special
  4738. area in memory allocated for the program. The stack required for a
  4739. program should be given in the program's documentation. However, if a
  4740. program causes a system failure, you may wish to experiment with
  4741. various stack sizes.
  4742.  
  4743. Commands that perform operations that consist of multiple levels may
  4744. require additional stack space.
  4745.  
  4746. Stack sizes generally range from 4000 to 25,000 bytes. If the stack
  4747. size is too small, a system failure may occur. Too large of a stack
  4748. size may take too much memory away from other system functions.
  4749.  
  4750. CautionIf you  run out of stack space, you  may receive a Software
  4751. Failure message. If you have altered the stack for the
  4752. program that caused the Software Failure message, try
  4753. increasing the stack size.
  4754. STATUS
  4755.  
  4756.  
  4757. Format:        STATUS [<process>] [FULL] [TCB] [CLI|ALL] [COMMAND
  4758. <command>]
  4759. Template:        PROCESS/N, FULL/S, TCB/S, CLl=ALL/S, COM=COMMAND/K
  4760. Purpose:            To list information about Shell/CLl processes.
  4761. Path:            C:STATUS
  4762. Specifcation:
  4763.  
  4764. STATUS without any arguments lists the numbers of the cunent Shell/CLl
  4765. processes and the program or command, if any, running in each. The
  4766. <process> argument specifies a process number, and STATUS will only
  4767. give information about that process.
  4768.  
  4769. For information on the stacksize, global vector size, priority, and
  4770. current command for each process, use the FULL keyword. The TCB keyword
  4771. is similar, but omits the command information.
  4772.  
  4773. With the COMMAND option, you can tell STATUS to search for a command.
  4774. STATUS then scans the Shell list, looking for the specified <command>.
  4775. If the command is found, the Shell number is output, and the condition
  4776. flag is set to 0. Otherwise the flag is set to 5 (WARN). This is useful
  4777. in script files.
  4778.  
  4779.  
  4780. Example 1:
  4781.  
  4782.     1> STATUS 1
  4783.     Process 1: Loaded as command: status
  4784.  
  4785.  
  4786. Example 2:
  4787.  
  4788.     1> STATUS 1 FULL
  4789.     Process 1: stk 4000, gv 150, pri 0 Loaded as command: status
  4790.  
  4791.  
  4792. Example 3:
  4793.  
  4794.     1> STATUS >RAM:Xyz COMMAND=COPY
  4795.     1> BREAK <RAM:Xyz  >NIL: ?
  4796.  
  4797. sends a break to the process executing COPY.
  4798.  
  4799.  
  4800. See Also: BREAK
  4801. TIME
  4802.  
  4803.  
  4804. Format:            TIME [EDIT] [SAVE] [PUBSCREEN <public screen name>]
  4805. Template:            EDIT/S, SAVE/S, PUBSCREEN/K
  4806. Purpose:            To set the system clock.
  4807. Path:            Extras:Prefs/Time
  4808. Specifcation:
  4809.  
  4810. TIME without any arguments or with the EDIT argument opens the Time
  4811. editor.
  4812.  
  4813. The SAVE option causes the current system time to be saved to the
  4814. battery backed-up clock, similar to SETCLOCK SAVE.
  4815. TYPE
  4816.  
  4817.  
  4818. Format:        TYPE (<file|pattern>} [TO <name>] [OPT H|N] [HEX]
  4819. [NUMBER]
  4820. Template:            FROM/A/M, TO/K, OPT/K, HEX/S, NUMBER/S
  4821. Purpose:            To display a text file.
  4822. Path:            C:TYPE
  4823. Specification:
  4824.  
  4825. TYPE will output the contents of the named file to the current window,
  4826. if no destination is given, or to a specified output file. If more than
  4827. one filename is specified, and the TO keyword is not used, the
  4828. filenames will be typed in sequence.
  4829.  
  4830. The OPT H and OPT N options are also available by the HEX and NUMBER
  4831. keywords, respectively. The HEX option causes the file to be typed as
  4832. columns of hexadecimal numbers, with an ASCII character interpretation
  4833. column. This is useful for analyzing object files. The NUMBER option
  4834. will number the lines as they are output.
  4835.  
  4836. To pause output, press the Space bar. To resume output, press
  4837. Backspace, Return, or Ctrl+X. To stop output, press Ctrl+C (***BREAK is
  4838. displayed).
  4839.  
  4840.  
  4841. Example:
  4842.  
  4843.     1> TYPE DEVS:MountList
  4844.  
  4845. The contents of the MountList file in the DEVS: directory will be
  4846. displayed on the screen.
  4847. UNALIAS
  4848.  
  4849.  
  4850. Format:            UNALIAS [<name>]
  4851. Template:            NAME
  4852. Purpose:            To remove an alias.
  4853. Path:            Internal
  4854. Specification:
  4855.  
  4856. UNALIAS removes the named alias from the alias list.
  4857.  
  4858. With no arguments, UNALIAS lists the current aliases.
  4859.  
  4860.  
  4861. See also: ALIAS
  4862. UNSET
  4863.  
  4864.  
  4865. Format:            UNSET [<name>]
  4866. Template:            NAME
  4867. Purpose:            To remove a local variable.
  4868. Path:            Internal
  4869. Specifcation:
  4870.  
  4871. UNSET removes the named local vaxiable from the variable list for the
  4872. current process.
  4873.  
  4874. With no arguments, UNSET lists the current variables.
  4875.  
  4876.  
  4877. See also: SET
  4878. UNSETENV
  4879.  
  4880.  
  4881. Format:            UNSETENV [<name>]
  4882. Template:            NAME
  4883. Purpose:            To remove a global variable.
  4884. Path:            Internal
  4885. Specification:
  4886.  
  4887. UNSETENV removes the named global variable from the current variable
  4888. list.
  4889.  
  4890. With no arguments, UNSETENV lists the current variables.
  4891.  
  4892.  
  4893. See also: SETENV
  4894. VERSION
  4895.  
  4896.  
  4897. Format:        VERSION [<library|device|file>][<version #>]
  4898. [<revision #>] [<unit #>]
  4899. Template:        NAME, VERSION/N, REVISION/N, UNIT/N, FILE/S,
  4900. INTERNAL/S, RES/S, FULL/S
  4901. Purpose:            To find software version and revision numbers.
  4902. Path:            C:VERSION
  4903. Specifcation:
  4904.  
  4905. VERSION finds the version and revision number of a library, device,
  4906. command, or Workbench disk. VERSION can also test for a specific
  4907. version/revision and set the condition flags if the version/revision is
  4908. greater. This is useful in scripts.
  4909.  
  4910. VERSION with no <library|device|file> argument prints the Kickstart
  4911. version number and the Workbench version number and sets the
  4912. environment variables. If a name is specified, version attempts to open
  4913. the library, device, drive, or file and read the version information.
  4914. You can get the version of the filesystem by specifying a drive name,
  4915. such as DF0: or DH0:.
  4916.  
  4917. When a <version #> (and possibly a <revision #>) is specified, VERSION
  4918. sets the condition flag to 0 if the version (and revision) number of
  4919. the Kickstart, library, or device driver is greater than or equal to
  4920. the specifed values. Otherwise, the flag is set to 5 (WARN). (lf a
  4921. revision number is not specified, no comparison on the revision number
  4922. is performed.)
  4923.  
  4924. The <unit #> option allows you to specify a unit number other than 0.
  4925. This may be necessary for accessing multi-unit devices.
  4926.  
  4927. The FILE option forces VERSION to inspect the object as a file, even if
  4928. it is a library or device. The INTERNAL and RES options let you get the
  4929. version of the Internal and Resident commands, respectively. Built-in
  4930. Shell commands will have the same version string as the Shell itself.
  4931. INTERNAL can also be used to find the version of a RAM module (library
  4932. or drive) without opening the device or library. The FULL option prints
  4933. out the complete version string, including the date.
  4934.  
  4935.  
  4936. Examples:
  4937.  
  4938.     1> VERSION
  4939.     Kickstart version 39.92 Workbench version 39.1
  4940.  
  4941.     1> VERSION  Prefs/Font
  4942.     Prefs/Font version 38.21
  4943. WAIT
  4944.  
  4945.  
  4946. Format:            WAIT [<n>] [SEC|SECS] [MlN|MINS] [UNTIL <time>]
  4947. Template:            /N, SEC=SECS/S, MIN=MINS/S, UNTIL/K
  4948. Purpose:            To wait for the specified time.
  4949. Path:            C:WAIT
  4950. Specification:
  4951.  
  4952. WAIT is used in command sequences or after RUN to wait for a certain
  4953. period, or to wait until a certain time. Unless you specify otherwise,
  4954. the waiting period is one second.
  4955.  
  4956. The <n> argument specifies the number of seconds (or minutes, if MINS
  4957. is given) to wait.
  4958.  
  4959. Use the keyword UNTIL to wait until a particular time of the day, given
  4960. in the format HH:MM.
  4961.  
  4962.  
  4963. Example 1:
  4964.  
  4965.     1>  WAIT 10 MINS
  4966.  
  4967. waits ten minutes.
  4968.  
  4969.  
  4970. Example 2:
  4971.  
  4972.     1> WAIT UNTIL 21:15
  4973.  
  4974. waits until 9:15 p.m.
  4975. WBPATTERN
  4976.  
  4977.  
  4978. Format:        WBPATTERN [FROM <filename>] [EDIT] [USE] [SAVE]
  4979. [CLIPUNIT <clipboard unit>]
  4980. Template:            FROM, EDiT/S, USE/S, SAVE/S, CLIPUNIT/K/N
  4981. Purpose:        To create background patterns for the Workbench and
  4982. windows.
  4983. Path:            Extras:Prefs/WBPattern
  4984. Specification:
  4985.  
  4986. WBPATTERN with no arguments or with the EDIT argument opens the
  4987. WBPattern editor.
  4988.  
  4989. The FROM argument lets you specify a file to open. This must be a file
  4990. that was previously saved with the Save As menu item of the WBPattern
  4991. editor. For example, if you have saved a special configuration of the
  4992. WBPattern editor to a file in the Presets drawer, you can use the FROM
  4993. argument to open that file. If the USE switch is also given, the editor
  4994. will not be opened, but the settings in the FROM file will be used. If
  4995. the SAVE switch is given, the editor will not open, but the settings in
  4996. the FROM file will be saved.
  4997.  
  4998. CLIPUNIT specifies which Clipboard unit to use during cut and paste
  4999. operations.
  5000. WHICH
  5001.  
  5002.  
  5003. Format:            WHICH <command> [NORES] [RES] [ALL]
  5004. Template:            FILE/A, NORES/S, RES/S, ALL/S
  5005. Purpose:            To search the command path for a particular item.
  5006. Path:            C:WHICH
  5007. Specifcation:
  5008.  
  5009. WHICH lets you find a particular command, program, or directory by
  5010. entering its name. If the named item is in the search path, WHICH
  5011. displays the complete path to that item. WHICH lists resident commands
  5012. as RESIDENT and internal commands as INTERNAL.
  5013.  
  5014. Normally, WHICH searches the resident list, the current directory, the
  5015. command path(s), and the C: directory. The condition flag is set to 5
  5016. (WARN) if the file is not found.
  5017.  
  5018. If the NORES option is specified, the resident list is not searched. If
  5019. the RES option is specified, only the resident list is searched.
  5020.  
  5021. The ALL switch causes the search to continue through the full search
  5022. path, even after one or more examples of the named item have been found
  5023. and listed. This ensures that all versions of a command or program are
  5024. found. It can, however, lead to multiple listings of the same command,
  5025. if that command is reached by more than one route (e.g., C: and the
  5026. current directory).
  5027.  
  5028.  
  5029. Examples:
  5030.  
  5031.     1> WHICH avail
  5032.     C:avail
  5033.  
  5034.     1> WHICH C:
  5035.     Workbench:C
  5036.  
  5037.     1> WHICH alias
  5038.     INTERNAL alias 
  5039. WHY
  5040.  
  5041.  
  5042. Format:            WHY
  5043. Template:            (none)
  5044. Purpose:        To print an enor message that explains why the
  5045. previous command failed.
  5046. Path:            Internal
  5047. Specification:
  5048.  
  5049. Usually when a command fails the screen displays a brief message. This
  5050. message typically includes the name of the file (if that was the
  5051. problem) but does not go into detail.
  5052.  
  5053. For example, the message "Can't open <filename>" may appear. This could
  5054. happen for a number of reasons - AmigaDOS may not be able to locate the
  5055. file, the file is of the wrong type, or there was insufficient disk
  5056. space or RAM for the operation requested.
  5057.  
  5058. If the reason is not immediately obvious, enter WHY to get a more
  5059. complete explanation.