Changes
→Generic Library for scripted checks
Mailing list discussion: http://lists.wpkg.org/swish.cgi?query=ideas+for+features&metaname=swishtitle
Info: Tired of writing scripts A Component-based utility library to support custom 'checks' in WPKG and then writing parameter parsers for each and every one of them?external scripts.
It provides a skeletal framework to consolidate and collect useful functions for administrators. You can trim down your code and write your tests to a simple standard for re-usability and sharing with others. The WSC file contains a rough-and-ready command-line parser and semi-automated parameter checks with options to debug code, trap errors 'in-the-field' and help build up a unified library of WPKG checks.
It's a work in progress.
* All code is written in JScript to allow you to customise WPKG if you wish.
* Examples of 'less used' techniques.
* ... being optimised as we write you read :-) '''Documentation'''<br>[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/readme.txt readme.txt] - A rough summary of how to use WPKG.Utility.<br>[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/WPKG.txt WPKG.txt] - A rough summary of how to use WPKG.Utility with WPKG.<br>[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/aboutWSC.txt aboutWSC.txt] - A rough guide to Windows Scripting Components.<br> '''Code'''<br>[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/Utility-V110.wsc Utility-V110.wsc] - The WPKG.Utility component library.<br> '''Examples'''<br>[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/DiskSpace.js DiskSpace.js] - A documented version of the DiskTotal.js. script<br> '''Script Library'''<br> [http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/DiskTotal.js DiskTotal.js] - Checks a drive for a given total space.<br> Usage: [cscript.exe] DiskTotal.js <Drive|Path> <lessthan|lessthanorequalto|etc> <Megabytes><br>
[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/DiskFree.js DiskFree.js] - Checks a drive for a given free space.<br>
Usage: [cscript.exe]DiskFree.js <Drive|Path> <lessthan|lessthanorequalto|etc> <Megabytes><br>