home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / DOS_HELP / PCLEARN.ZIP / DOS2.TUT < prev    next >
Encoding:
Text File  |  1988-12-13  |  7.7 KB  |  159 lines

  1.  
  2. -------------------------------------------------------------------------
  3. DOS ADVANCED COMMANDS AND SHORTCUTS . . . .
  4. -------------------------------------------------------------------------
  5.  
  6. Life gets more interesting the longer you stay in the game. DOS 
  7. tries to offer you some shortcuts from time to time. The function
  8. keys labelled F1 through F10 on your keyboard access a special storage
  9. area of DOS. Additional key combinations offer other shortcuts.
  10.  
  11. F1 repeats one character per keystroke of the LAST command typed
  12. F2 repeats the number of characters specified
  13. F3 repeats the entire LAST command ------>  USEFUL!
  14. F4 skips over character(s) up to the character specified
  15. F5 makes the new line the new command in memory
  16.  
  17. Insert key puts keyboard into insert mode
  18. Delete key deletes character to left of cursor
  19. Escape key voids the current input
  20. Backspace key removes last character typed 
  21. Left and right arrow keys move cursor left and right without deleting
  22.  
  23. Control C or Control Break Aborts current DOS command -----> USEFUL!
  24. Control H or backspace removes last character typed
  25. Control P or Control PrtSc sends output to printer until turned off
  26.         (by typing same key combination (Control P) a second time)
  27.  
  28. Shift PrtSc prints one screen of data
  29. Control Numlock or Control S suspends output to screen. Press any key
  30.         to continue.
  31. Control Alt Delete (all three keys at once) Resets and empties
  32.         entire computer data!  ALL DATA AND PROGRAMS LOST!
  33. =============================================================================
  34.  
  35. Next some of the more advanced (and useful) DOS commands . . .
  36.  
  37.  
  38. ==MODE (external) is a command to setup the printer, display and 
  39. communications outputs of your computer. Use mode when you have several
  40. printers, two or more monitors, several display types (color and mono-
  41. chrome). Example: a>mode co80 (meaning set display mode to color,
  42. 80 columns wide). Example: b>mode lpt1=com1  You can also set modem
  43. transmission settings such as parity and baud rate.
  44. Example: a>mode com1:10,n,8,1,p
  45.  
  46. ==MORE (external) causes the display to pause when full when reading
  47. a long file or directory. More is always combined with other DOS commands.
  48. Type and dir are examples of commands more is used with. A special
  49. vertical bar | is used to facilitate this. Example a>dir|more
  50. Example: b>type letter.txt|more
  51.  
  52. == F1 and F3 are useful function keys. F1 repeats your last DOS command
  53. one character at a time. The more useful F3 key repeats your entire
  54. command. 
  55.  
  56. ==  < and > are input/output symbols. They help DOS send and receive
  57. signals properly. Example: a>sort<letter.txt>letter.new
  58. Example: b>dir>prn (meaning produce a directory listing, but send
  59. the output to the printer, rather than the screen). 
  60. Example: format b:<special.fil (format a floppy and accept input
  61. keystrokes from the file special.fil rather than input from the
  62. keyboard.)  
  63.  
  64. ==SORT (external) sorts data lists in alphabetical or reverse order.
  65. Example: a>dir|sort    Example: sort<letter.doc>new.doc
  66.  
  67. ==GRAPHICS (external) allows you to print the contents of a graphics
  68. display (e.g., a lotus graph on the screen) while using the SHIFT-PRTSC
  69. key combination mentioned earlier. Graphics mode display programs
  70. use high resolution or color displays - - Reflex, graphing programs
  71. and others. Example: a>graphics
  72.  
  73. ==FIND (external) searches for words and phrases in a file. You cannot
  74. use wild cards (? and *). 
  75. Example: a>find "lovely candy bars" letter.l letter.2 lts.wks  
  76. (meaning find the phrase in quotes in the three files listed)
  77.  
  78. ==ASSIGN (external) tells DOS to send disk requests for one drive
  79. to the other. Effectively renames your a drive the b drive and 
  80. vice versa. Allows you to access only certain drives for security
  81. reasons (remote modem use, for example). By itself, assign
  82. simply restores the normal drive configurations and names.
  83. DISKCOPY and FORMAT commands ignore assign!
  84. Example: b>assign c=a
  85.  
  86. Tip---> Use of assign command is rare.
  87.  
  88. ==PATH (internal) tells DOS where to search for executeable files
  89. in the subdirectories you specify. Allows simultaneous searching
  90. of many subdirectories at once. Path eliminates the need to copy
  91. files to and search through many directories manually. You can
  92. establish a path command in your autoexec.bat file (more on this
  93. later) to establish this process every time you startup the computer.
  94. Example: c>path \letters;\finance;\utils
  95.  
  96. ==PROMPT (internal) allows change of the DOS prompt - the typical
  97. a>    The characters $P show the active directory. The characters $G
  98. show the > symbol. This can be setup in the autoexec.bat file to
  99. initialize the prompt every time you startup your computer.
  100. Example: a>prompt $P$G.
  101.  
  102. ==TREE (extrernal) shows the structure of the subdirectories on your
  103. disc. You can check the arrangement of the root (main) and all
  104. subdirectories. Tree/f shows all file names. Example: b>tree/f
  105.  
  106. ==ATTRIB (external) allows a file to be set for "read only" (non-
  107. eraseable). Attrib +r marks for read only. Attrib -r removes this.
  108. Protects files from modification or removal. Attrib alone displays
  109. file attributes. A small r appears to the left of a files directory
  110. listing if that file is read only (protected). Only available in
  111. DOS 3.0 and later. Example: a>attrib +r letters.doc
  112.  
  113. ==BACKUP & RESTORE (external) used to making spare copies (backups)
  114. of hard disc data. Copies groups of files to floppies. Restore
  115. reverses the process and puts the files from floppies to hard disc.
  116. Backup/m copies only files modified since the last backup. Backup/s copies
  117. all subdirectories and their files. Backup/d copies files modified after
  118. the date you specify. Backup/a adds files to a disc that already contains
  119. other files. Files copied to floppies with backup can't be used
  120. (they are "encoded") until they are restored ("unencoded"). 
  121. Restore/s puts back all subdirectory files. 
  122. Example: a>backup c:\*.* a:/s
  123. Example: c>restore a:\*.* c:/s
  124.  
  125. ==EDLIN (external) is a little word processor which can prepare files.
  126. Its output is ASCII (plain text). Example: a>edlin go.bat
  127. Edlin is rudimentary. Other word processors (text editors) can
  128. output ASCII files more quickly and easily, but edlin is good for
  129. short jobs. The copy con command (discussed earlier) will do the
  130. job also.
  131.  
  132. ==VDISK (exteral) is a "ramdisk" which allows you to construct an
  133. artifical "software" disc drive in computer memory. It is very fast
  134. but does use computer memory. Also known as a virtual disc. VDISK.SYS
  135. is usually placed in the configuration file (more on this in a bit)
  136. with the device command.
  137.  
  138. Example: device=vdisk.sys 128   sets up a ramdisk of 128,000 bytes in
  139. size. VDISK is available in DOS 3.0 and later.
  140.  
  141. ==BATCH (external) refers to batch commands and files that contain a list of 
  142. instructions. You can use any DOS commands such as SORT, DIR, COPY and also
  143. special commands unique to batch files such as GOTO, PAUSE and so forth.
  144. We'll discuss batch files in greater detail later. Batch files always have a 
  145. BAT extension after the main file name. Batch files are started by typing
  146. the name of the file. Example: type go to start a file named GO.BAT
  147. A special batch file called AUTOEXEC.BAT (automatically execute) starts up
  148. the computer and executes files and commands you specify. 
  149.  
  150. ==CONFIG.SYS (external) is a special file that tells DOS the "configuration"
  151. or structure of your computer. It helps DOS determine the status of screens,
  152. keyboards, ramdisks, hard drives and other "customizations" to your system. 
  153. Example: device=harddisk.sys  Example: device=vdisk.sys  You can create
  154. a config.sys file in the same manner as creation of a batch file (with
  155. the copy con instruction or with any ascii word processor or text editor).
  156.  
  157.  
  158. End of file, now press escape key.
  159.