home *** CD-ROM | disk | FTP | other *** search
- echo off
- rem Write the current environment variables into a file
- SET >\$ENVED.DAT
- rem Change the following line to use your favorite text editor
- KEDIT \$ENVED.DAT
- rem Convert the .dat file to a .bat file to replace the environment
- rem Alternatives:
- rem (1) On true blue IBM PCs:
- rem BASICA \$ENVED
- rem (2) On clones:
- rem GWBASIC $ENVED
- rem (3) Compiled program (from C or Turbo Pascal):
- rem $ENVED <\$ENVED.DAT >\$ENVED$.BAT
- $ENVED <\$ENVED.DAT >\$ENVED$.BAT
- rem Erase the .dat file now that we are through with it
- ERASE \$ENVED.DAT
- rem Execute the .bat file (must be written in a directory in PATH)
- $ENVED$