Output of file : LX.DOC contained in archive :
LIST.ZIP
LX
LX.COM executes a program zero or more times, generating command
lines using its own parameters and standard input. It was written
for use with the output of L.COM using its /F parameter.
Use:
LX [
] [][]
where:
is "/E", "/O" or "/Q" (see Options).
is the optional drive name.
is the optional path name.
is the file name without the type (which must be .COM
or .EXE) of the program to be executed. If neither nor
is specified and the file is not found in the current
drive and directory, LX.COM will search the path for it.
is the remainder of LX.COM's command line.
Operation:
LX.COM separates from the remainder of its command
line. ends with the first space, tab or '/'. Next,
it searches for the named .COM or .EXE file.
Standard input is examined to determine whether it is a device.
If it is, then it is assumed to be a user device, and LX.COM will
prompt for each line using its own file name (without the .COM)
followed by '>'.
A duplicate handle is provided for standard input, and standard
input is redirected to standard error. This allows LX.COM to
execute interactive programs that use standard input.
For each nonempty line read from the duplicate handle, parameters
are generated and the program is executed.
If the output of LX.COM is piped to another command, that command
will receive the concatenated outputs of all runs of the program
executed by LX.COM.
Options:
There are three options that cause LX.COM to echo each command
generated before executing it. Only one option may be used.
"/E" (or "/e") causes the command to be echoed to stderr which is
normally the user device (usually CON). "/O" (or "/o") causes the
command to be echoed to stdout and may be redirected.
"/Q" (or "/q") causes the command to be output to stderr
followed by the line
...execute (y/n)?
Execution of each run is performed if "Y" or "y" is input, skipped
if "N" or "n" is input; or LX.COM may be terminated by ctrl-C or
ctrl-break. Other characters are ignored.
Parameters:
Starting with the character following , LX.COM's
parameter string is copied to a buffer. This buffer will
contain the command line for the executed program. When a
'$' is encountered, it must be followed by '0' or '$'. Any
other character will terminate LX.COM before the first execution
with the message:
LX: parameter error
The sequence "$0" is replaced in the buffer by the input line.
"$$" is replaced by "$".
Termination:
LX.COM terminates when:
the end of file or a ctrl-Z is encountered in its input,
an abnormal return (including TSR) has occured from the
executed program,
an error has occured.
Errors:
LX: no program name
if LX.COM has no parameters.
LX: invalid program name
if the name contains '?' or '*' or begins with '/';
or the line has an invalid or second option.
LX: program not found
if the search for the program is unsuccessful.
LX: memory reallocation error
this should not occur: try again after rebooting.
LX: error in program execution
if MS-DOS is unable to execute program:
perhaps insufficient memory.
LX: argument too long
if input line has more than 126 characters.
LX: parameter error
if '$' is not followed by '0' or '$'.
LX: command line too long
if generated command line has more than 126 characters.
LX: input error in stdin
if MS-DOS returns an error while reading input.
Examples:
L/F | LX L $0/B/R
L.COM lists the unhidden files in the current directory in the
"/F" format (full drive, path and filename.typ; one per line).
The output is passed to LX.COM, which executes L.COM for each
file with the drive, path and filename as a parameter. "/B"
tells L.COM to include the file size, allocation size and the
difference, for each execution. "/R" suppresses the
"*** redef ***" message which, in this instance, would otherwise
occur for each execution.
L C:\ .C .PAS /A/S/F | LX FIND "CLOCK$$" $0
L.COM lists all files *.C and *.PAS (".C" & ".PAS") in the root
directory of drive C: ("C:\") and all its subdirectories ("/S")
including system and hidden files ("/A") in the "/F" format.
The output is passed to LX.COM, which executes FIND.EXE with
"CLOCK$" and a filename for each execution.
LX L $0 \ /S
At the LX> prompt, the user types one or more L type file
specifications. LX.COM passes the line typed along with "\"
and "/S". The root and all subdirectories of the current drive
are searched for all unhidden files that meet one or more of the
specifications typed. LX.COM terminates when ctrl-Z is entered
or ctrl-C is typed.
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/