Changes

Jump to: navigation, search

User contributed software

789 bytes added, 10:45, 16 July 2008
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.
This is a prototype script library based in a .WSC (Windows Scripting Component) file that can be included into your script files Tired of writing scripts to simplify the process.support custom 'checks' in WPKG and then writing parameter parsers for each and every one of them?
It provides This is a prototype script library based in a skeletal framework to consolidate and collect useful functions for administrators. You WSC (Windows Scripting Component) file that can trim down the code you have to write and write be included into your tests script files to a simple standard for re-usability and sharingsimplify the process of designing custom checks.
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>
URL: [Readme] http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/readmeDiskExists.txt<br>URL: [WSC library] http://devjs DiskExists.bus.brighton.ac.uk/kej//WPKG/Utilities/utility.wsc<br>URL: [About WSC filesjs] http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/aboutWSC- Checks to see if a drive physically exists.txt<br>URL Usage: [Example, Diskpace Checker] http://devcscript.bus.brighton.ac.uk/kej//WPKG/Utilities/DiskSpace.js<br>URL: [Working, DiskTotal Checkerexe] http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/DiskTotalDiskExists.js<brDrive|Path>URL: [Working, DiskFree Checker] http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/DiskFree.js<br>URL: [Working, DiskExists Checker] http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/DiskExists.js<br>
Anonymous user

Navigation menu