The "_" Windows Batch Library - now on github
Posted: 15 Oct 2015 03:10
For years I've been looking for the ultimate DOS/Windows batch library - without much success. So I've build my own - including documentation, unit tests and examples.
The library is not a collection of snippet - like DosTips, but ready to use scripts;
The "_" Windows Batch Library (The "underscore" Windows Batch Library) is a collection of generic, ready-to-use batch scripts, that I've developed and refined over the years. Most of the script are self-made, but other sources or inspiration are mentioned in either $AUTHOR or URL tags in the scripts headers.
Experience has learned me the hard way, that one cannot rely on pre-installed scripts and functionality. Often it is not possible to install binary tools like Cygwin, Unix tools or script interpreters like Perl or PHP. This leaves me with M$ tools like Debug, Basic, Visual Basic or Powerscript. Even these tools may not be available on every system.
The scripts in this library are all pure text based source code. You should be able to install them by simply copy the library directory onto your system - and you will be ready to Rock'n'roll!
Try out:
Some scripts mimik *nix functions like tail, which, wget, banner.
The scripts are available at: https://github.com/ClicketyClickDK/Underscore
Please read the README file - and if you download the library check the documentation\index.html for more details
The library is not a collection of snippet - like DosTips, but ready to use scripts;
The "_" Windows Batch Library (The "underscore" Windows Batch Library) is a collection of generic, ready-to-use batch scripts, that I've developed and refined over the years. Most of the script are self-made, but other sources or inspiration are mentioned in either $AUTHOR or URL tags in the scripts headers.
Experience has learned me the hard way, that one cannot rely on pre-installed scripts and functionality. Often it is not possible to install binary tools like Cygwin, Unix tools or script interpreters like Perl or PHP. This leaves me with M$ tools like Debug, Basic, Visual Basic or Powerscript. Even these tools may not be available on every system.
The scripts in this library are all pure text based source code. You should be able to install them by simply copy the library directory onto your system - and you will be ready to Rock'n'roll!
Try out:
- what.cmd - prints usage from the file given as argument (what itself is default)
- _getopt.cmd - parses command line arguments and creates environment variables
- _action.cmd + _status.cmd - used for printing process status
- FormatStr.cmd - outputs columns of strings right or left aligned
Some scripts mimik *nix functions like tail, which, wget, banner.
The scripts are available at: https://github.com/ClicketyClickDK/Underscore
Please read the README file - and if you download the library check the documentation\index.html for more details