home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / sysutl / dosxt142.arc / DOS.DOC next >
Encoding:
Text File  |  1988-07-22  |  6.1 KB  |  191 lines

  1.  
  2.  
  3. this is a shareware program, if you find it useful and timely.
  4. Please send
  5.  
  6.      $10 - $30
  7.  
  8.     Dos Extender
  9.     23240 Lori Way
  10.     Hayward, CA  94541
  11.  
  12. For free updates please send at least $20
  13.  
  14. GENIE:  BFOSTER
  15. atari ST form node 158, bill foster
  16. send all questions and unimplemented improvement suggestions to me
  17.  
  18.             dos.exe version 1.42
  19.  
  20.    This program may be distributed freely if this file is included
  21.  
  22. Version 1.42 additions:  pushd and popd can now interchange drives too
  23. Version 1.41 additions:  dl command - lists subdirectories
  24.              login sequence
  25. Version 1.4 additions:    color prompts - set alias color1 / color2
  26.             ^C is intercepted and disregaurded at the prompt
  27. Version 1.3 additions: saves out history to start where you left off
  28.             to a file called \history.sys, when '/n' is specified 
  29.             'dos /n'  or 'dos -n'  invokes loading and saving
  30.               of history amd login files, now normally disabled
  31. Version 1.2 additions: saves every login access to the readonly file \login.sys
  32. Version 1.1 additions: multiple commands per line, push and pop directories
  33.  
  34.    A helpful program is designed to increase speed and thoroughput when
  35. you're working with MS/PC-DOS.  I place this program in my autoexec.bat
  36. file as the last entry so it is ALWAYS in use.  Essentially, it gives the
  37. power of the Unix history and alias commands as a memory resident command
  38. line interpreter on the PC.  Please keep in mind that this is a Shareware
  39. program.  Not being overly complex, it remembers the last
  40. 60 messages typed and allows you to recall them by typing just the first
  41. couple of characters.  Recalled lines start with the letter '!'
  42.    There are also some more very powerful extensions to dos.
  43.  
  44.     Example:
  45. Say you are attempting a piece of software and want to alternate between
  46. the word processor and C compiler to work out some errors:
  47.  
  48.     you type:       ws design.c
  49.     after editing:    cc design.c -o design.o
  50. there were compilation errors, so
  51. to return to ws type:    !w
  52.     after editing:    !cc
  53.  
  54. To look at everything you've done, say 'hist'
  55. To copy a numbered line, type '!#' where # is the line number
  56. To execute the exact same command a second time in a row, type '!!'
  57.  
  58. Another history feature is the ability to access the last
  59. argument on the previous line, with "!$"
  60.  
  61.             ws design.doc
  62.             dir !$
  63.  
  64.     would edit and then give a directory listing of the file design.doc
  65.  
  66.  
  67. Part II of the dos package is the alias structure - To substitute one word
  68. for another or one word for a group of words.
  69.  
  70.         alias ls dir
  71.  
  72.     replaces the dir command with 'ls' and allows you to type 'ls *.c'
  73.  
  74. to look at all current substitutions, type 'alias' alone,
  75. or 'alias ls' for just one
  76.  
  77. Aliases will only work if they are shown first
  78.  
  79. apon entry to dos.exe, the PATH is searched for the file "alias.bat" that
  80. contains often accessed aliases and maybe a few executables
  81.  
  82. a sample file might appear as follows - 
  83.  
  84.     rem : sample alias.bat file
  85.     alias al alias
  86.     al ls dir
  87.     al cat type
  88.     al mydir cd \c\bill
  89.     al cc c:\bin\mmcc.exe
  90.     al ln c:\bin\mmlink.exe
  91.     al color1 cyan
  92.     al color2 green
  93.     al pc 'pushd c:\comm&procomm&popd'
  94.  
  95. note that the last alias uses multiple commands on the same line.  They are
  96. seperated with & and the whole thing is enclosed in single quotes (').
  97.  
  98. in order to execute batch files from the command line, they should be
  99. precedded with the word batch.  Example:  batch autoexec
  100.  
  101. Important:
  102.     to exit dos.exe type 'bye'
  103.  
  104.  
  105. Version 1.1 Updates:
  106.  
  107.     pushd, popd
  108.     push and pop directories from a dir stack. Example,
  109.  
  110.         pushd \bbs\atari    - moves to \bbs\atari directory
  111.         pushd c:\comm        - saves current drive & directory
  112.         popd            - returns to the previous directory
  113.  
  114.     push and pop may go up to 10 levels deep
  115.  
  116.     multiple commands per line
  117.     Using the special character '&' you can seperate commands on one line
  118.  
  119.         cc myfile & ln myfile & ls myfile.*
  120.  
  121.     will first run cc, and then ln apon myfile, and next list myfile.*
  122.  
  123.     multiple command aliases can be specified using single quotes, example:
  124.  
  125.         alias pc 'pushd \procomm & procomm & popd'
  126.  
  127.  
  128. Version 1.2:
  129. Version 1.3:
  130.     saving of history and login records can be enabled by calling
  131.     dos with the -n option, example:
  132.  
  133.             dos -n
  134.  
  135. Version 1.4:
  136.     to set the command line colors, place into alias.bat or type
  137.     "alias color1 xxxx"  and  "alias color2 xxxx"
  138.     where xxxx can be one of the following colors:
  139.  
  140.     red, green, blue, yellow, black, magenta, white
  141. version 1.41:
  142.     type 'dl' and all subdirectories of the current directory are listed
  143.     Login sequence:
  144.         Apon entry to the program, a prompt will appear after the
  145.         execution of alias.bat.   The promp looks like:   Login:
  146.         usually you can just press ENTER and you will enter dos.
  147.         if you enter any other word, such as your first name John,
  148.         dos will attempt to execute the batch file JOHN.BAT and then
  149.         send you into dos.  This is so that if different users of the
  150.         same machine have preferences such as color settings they can
  151.         be accomodated.  Also if the -n feature was enacted, the user's
  152.         name will be recorded in the log.
  153. version 1.42:
  154.     alias's may be referenced in the middle of the command line by
  155.     preceeding them with a $.  One excellent use for this has to do with
  156.     the user login.  In each user's file you can assign an alias of that
  157.     user's name.  i.e. inside john.bat
  158.         alias user john
  159.     then (or before in alias.bat), you can use that name in another alias
  160.         alias mail 'mailx $user'
  161.     and the current user name will be used
  162.     this also makes for good user defined environment variables as aliases
  163.     things like:  
  164.             alias catopt '/f /s'
  165.             alias cat 'cat $catopt'
  166.     then you could type:
  167.             cat file
  168.     and the /f and /s options would be used
  169.  
  170. In the works:
  171.     perhaps function key definitions through aliases
  172.     alphabetized and more complete directory listings
  173.  
  174.  
  175.  
  176.         Shareware Information:
  177.  
  178. You must send $30 for licensing for use in a commercial or government
  179. environment.
  180.     $30 -  1 pc
  181.     $45 -  2 to 5 users
  182.     $100 - 6 to 20 users
  183.  
  184.  
  185.     Dos Extender
  186.     23240 Lori Way
  187.     Hayward, CA  94541
  188.  
  189.  
  190.  
  191.