15
edits
Changes
→Generic Library for scripted checks
'''Documentation:'''<br>
[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/gettingstarted.txt gettingstarted.txt] - A quick guide to using WPKG.Utility.<br>
[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/integrating.txt integrating.txt] - A guide to using scriptlets with WPKG.<br>
[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/history.txt history.txt] - About the origins of WPKG.Utility.<br>
[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/aboutWSC.txt aboutWSC.txt] - A rough guide to Windows Scripting Components.<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> '''Code:'''<br> '''WPKG.Utility''' - The WPKG.Utility component library.<br> Versions : [http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/Utility-V110.wsc V110],[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/Utility-V110-01.wsc V110-01]<br>
'''Scriptlet Library:'''<br>
Please note: These scripts need amendments made to them to locate the WPKG.Utility .wsc file.
'''DiskTotal.js''' - Checks a drive for a given total space.<br> Versions : [http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/DiskTotalV101.js DiskTotalV101.jsV101] - Checks a drive for a given total space.<br> Usage: [cscript.exe] DiskTotalV101DiskTotalVxxx.js <Drive|Path> <lessthan|lessthanorequalto|etc> <Megabytes><br>
Returns: 0, if the test succeeded, 1 if the test failed.<br>
'''DiskFree.js''' - Checks a drive for a given free space.<br> Versions : [http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/DiskFreeV101.js DiskFreeV101.jsV101] - Checks a drive for a given free space.<br> Usage: [cscript.exe]DiskFreeV101DiskFreeVxxx.js <Drive|Path> <lessthan|lessthanorequalto|etc> <Megabytes><br>
Returns: 0, if the test succeeded, 1 if the test failed.<br>
'''DiskExists''' - Checks to see if a drive physically exists.<br> Versions : [http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/DiskExistsV101.js DiskExistsV101.jsV101] - Checks to see if a drive physically exists.<br>
Usage: [cscript.exe]DiskExistsV101.js <Drive|Path><br>
Returns: 0, if the test succeeded, 1 if the test failed.<br>