I'm writing an interpreter "engine" for command scripts (a.k.a. "batch
files"). The idea is that one can link CMDAPI.DLL into one's application and
run command scripts and execute command lines in the context of the current
process much like one does with the REXX interpreter in REXXAPI.DLL.
I've reached the stage where the engine executes command lines and runs
command scripts, and supports pretty much everything from environment variable
expansion and internal commands to multiple commands on one line and
pipelines. I'm now looking for people to use and test the API in their
programs.
I can see a wide variety of uses for such an API, from NC clones and YAOS
variants that no longer need to "shell out" to run commands, to novel
approaches to specliased command interpreter programs, such as NSLOOKUP or an
FTP client, giving them the scripting, redirection, environment variable
expansion, and pipelining abilities that they so often lack because their own
interpreters are comparatively primitive. (The CMD interpreter, like the REXX
interpreter, is designed to be extensible. So an FTP client would extend it
by adding internal commands for "GET", "PUT", "LS", and the like, for
example.)
If anyone is interested, please let me know immediately.
¯ JdeBP ®
--- FleetStreet 1.22 NR
2604/104
* Origin: JdeBP's point, using Squish (2:257/609.3)
|