Академический Документы
Профессиональный Документы
Культура Документы
Version 1.0
August, 1989
PURPOSE:
This utility is used in a batch file to set an environment variable
to a value or create a new environment variable.
An example would be if you had a replacement for the DOS "TYPE" command such
as the "BROWSER" utility which did not prompt you for a filename if you
just issued the command "BROWSER" but instead gave you a nasty error message.
This utility can get around this by letting the batch file prompt you for a
filename, as it does in the example below.
USAGE:
To use it, the batch file command is:
EXAMPLES:
@echo off
if not "%1" == "" goto name
echo Please enter the filename to be browsed,
echo and press "Enter":
c:\tools\envset c:\temp01.bat tempname
call c:\temp01.bat
c:\utils\browser %tempname%
set tempname=
del c:\temp01.bat
goto end
:name
c:\utils\browser %1
:end
The utility ENVSET will ask for a filename to be entered, then set the
environment variable "tempname" to that filename. It then runs the
"BROWSER" utility with that filename as input and then gets rid of the
extra TEMP.BAT file and the unnecessary environment variable TEMPNAME
that we are finished using.
Copyright/License/Warranty
--------------------------
This document and the program file ENVSET.COM ("the software") are
copyrighted by the author. The copyright owner hereby licenses
you to: use the software; make as many copies of the program and
documentation as you wish; give such copies to anyone; and
distribute the software and documentation via electronic means.
There is no charge for any of the above.