home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / window / miscutil / enved2 / read.me < prev   
Encoding:
Text File  |  1987-07-15  |  2.7 KB  |  54 lines

  1. DOS Environment Edit, copyright 1987 by Bill Mayne.
  2. (May be copied and used freely by individuals but not published or sold.)
  3.  
  4. Files included:
  5.  
  6. ENVED.BAT  - modify for your own editor
  7. $ENVED.BAT - BASICA or GWBASIC
  8. $ENVED.C   - Microsoft C, version 4.0
  9. $ENVED.EXE - Executable file produced by MSC.
  10. $ENVED.PAS - Turbo Pascal (.COM file omitted to save space)
  11.  
  12. This archive contains some programs and batch files to help edit the DOS
  13. environment.  The  idea for  this came  from two  sources.  First my own
  14. desire to make changes to  the environment for testing or  other reasons
  15. in a more convenient way than manually using the SET command.  The  PATH
  16. and PROMPT values tend to be rather long, and I always thought it was  a
  17. shame that I had to retype the whole string to make one change, such  as
  18. adding another  directory to  the PATH.   Second I  saw a  public domain
  19. program which allowed editting the environment, but because it tried  to
  20. do everything itself (with a little necessary help from batch files)  it
  21. had some limitations.   In any case  I would rather  have the choice  of
  22. using a  full blown  commercial text  editor which  is much  better than
  23. anything  I  or  anyone  else  could  write  without a major programming
  24. effort.
  25.  
  26. ENVED.BAT controls the process.  The steps are:
  27.  
  28. (1) Execute a SET  command, redirecting the  output to a  temporary data
  29.     file named "\$ENVED.DAT".  This could be in any directory and on any
  30.     drive.  If you have a RAM disk put it there.  It is deleted later.
  31.  
  32. (2) Edit the  temporary data  file using  the editor  of choice.   I use
  33.     KEDIT by Mansfield Software.  The  only requirement is that it  be a
  34.     straight ASCII  edit.  If  you use  a word  processor it  must be in
  35.     nondocument mode.
  36.  
  37. (3) Convert  the  .DAT  file  to  "\$ENVED$.BAT"  using  a program named
  38.     "$ENVED".  Three version are provided, using BASIC, Microsoft C, and
  39.     Turbo Pascal.  The BASIC program has the names of the .DAT and  .BAT
  40.     files hard coded in the first two lines.  The C and Pascal  versions
  41.     use  standard  input  and  output,  with redirection provided by the
  42.     $ENVED.BAT.  Comments in the source code give more information.
  43.  
  44. (4) Execute $ENVED$.BAT.
  45.  
  46. I wrote this in three languages so users can tinker with it.  I like the
  47. C version best, since it uses just a stand alone .EXE file.  Anyone  can
  48. modify the  BASIC version,  and it  takes less  space on  the disk.  The
  49. archive includes  $ENVED.EXE, produced  from the  C program.   The Turbo
  50. Pascal .COM file is not included since it is functionally equivalent but
  51. more than twice as big (12190 bytes for TP versus 5224 for MSC).  Pascal
  52. source code is of interest only to folks who have Turbo Pascal, and they
  53. can compile their own.
  54.