Past (20 years or so) and present code. A variety of languages and platforms. Some gems. More gravel. Some useful stuff and some examples of how not to do it.
Showing posts with label CLI framework. Show all posts
Showing posts with label CLI framework. Show all posts
Wednesday, January 11, 2006
[VBScript] A CLI framework
Here's a simple framework for building your own CLI (Command Language Interface)
Keywords at this point are: quit, exit, bye, eval, echo, set and run. Below is a sample session.
Now my own version adds a little to this framework by including a .vbs file full of extra symbols, procedures and classes. I've reproduced it below just so that you can see how to do a synthetic include in VBScript. Interestingly, the technique also works in HTAs.
Enjoy.
Subscribe to:
Posts (Atom)