XSET allows you to put EVERYTHING you want in
a variable of the current DOS environment
and use it as if you assigned it the value
with the standard DOS command 'SET'. You will
be able to write very efficient batch
files including string manipulation,
if not exist XSET.EXE goto NOTFOUND
if not exist XSET.DOC goto NOTFOUND
echo Error: you must be in the directory containing XSET.EXE and XSET.DOC
echo Do you want to see the documentation on the screen
echo or to print it onto the printer ?
XSET/COLOR HIGHLIGHT/PROMPT " Hit S for screen, P for printer"/UPPER _k KEY "SP"
more < xset.doc
:Pecho Please choose printer: P prn
echo 1 lpt1
echo 2 lpt2
echo 3 lpt3
echo 4 lpt4
echo O other
XSET/UPPER _k KEY "P1234O"
if "%_k%" == "O" goto input
if "%_k%" == "lptP" set _k=prn
copy xset.doc %_k% > nul
XSET/COLOR HIGHLIGHT/DEFAULT/PROMPT " Choose printer: " _k
if not "%_k%" == "" goto print
:Pecho Run the batch file DEMO.BAT to have an example of the power of XSET.
XSET: Extended SET Instruction
(C) 1991,92,93 STERN Marc
Everything you always wanted to put in an environment variable but
were afraid to ask DOS for...
XSET: The easy way to write efficient batch files.
XSET allows you to put EVERYTHING you want in a variable of the
current DOS environment and use it as if you assigned it the value
with the standard DOS command 'SET'. You will be able to write very
efficient batch files including string manipulation, calculation,...
XSET is the most powerful environment variables manipulation
program you ever saw. It also has a very easy and intuitive user
interface (very close to the DOS 'SET' command). It is not a resident
program; it so cannot interfere with any of your other applications.
XSET is fully compatible with MS-DOS (from 3.30), PC-DOS, DR-DOS, 4DOS,
NDOS, Windows, OS/2, ...
XSET has seven major features:
- XSET permits to catch the output of any command (internal or
external) or program and put it into an environment variable.
- XSET has several built-in commands to modify the output of a
program or a string given on the command-line (extract a part of a
- XSET has a built-in full floating-point calculation functionality:
You can program incremental loops, input a calculation string and
output the resulting number,...
- XSET can manage variable contents of more than 128 characters (your
path can now be as long as you want)
- XSET has some other built-in commands to give you access to some
system data (date, time, ...)
- XSET has built-in commands to clear all environment or restore a
previously saved one.
- XSET gives you access to high-level user interface input/output
(line-editing, colors, windows, boxes,...).
More than 60 commands to do all what you need.
Av. de la Basilique 376 bte 19
Tel: +32-2 525.63.32 ( 9h - 16h Central European Time )
+32-2 427.98.52 ( after 18h Central European Time )
E-mail: [email protected]
see appendix in file XSET.DOC for other networks