home *** CD-ROM | disk | FTP | other *** search
- bat /p * Edit DOS Environment settings...
- *
- * (c) Copyright 1986 by Seaware Corp.
- *
- if %1/ = / goto -tell
- /U %1 = %1 |/U-
- trace.off
- shell set >editset$.dat
- <editset$.dat
-
- -read.line
- read.parsed %0
- if %0 ? %1= = 1 then goto -found.var.match
- if %0 <> ^Z then goto -read.line
- <
- type Environment variable ''' %1 ''' was not found!
- type Current settings are: |type
- shell type editset$.dat
- shell del editset$.dat
- exit
-
- -found.var.match
- <
- stack Set %0;
- shell del editset$.dat
- exit
-
- -tell begtype
-
- Usage: EDITSET dos_setting
-
- Where "dos_setting" is one of the current environment variables. This
- batch file will allow any of the DOS environment variables to be edited and
- changed. Typical variables are PATH, PROMPT, and COMSPEC. The batch file
- will put the current setting on the DOS command line prompt. The built in
- editor on the DOS command line, or other DOS prompt editor extensions like
- DOSEDIT may be used to then edit the setting of the environment variable.
-
- It is recommended, but not required, that this program be used with DOSEDIT,
- or another DOS command line editor.
-
- end