ASP Disk Monitor

Using the VBScript Drives Collection

Google

This ASP script accesses information about disk drives attached to a web server supporting ASP. The script could have many uses, such as:

Making sure a server supporting uploading of files has sufficient disk space available before large files are uploaded.

Creating an ASP document that will allow remote monitoring of disk space while the server administrator is out of town.

Output from the web server on which brettb.com is hosted is shown below:

    Drive C is a Fixed drive
    Drive D is a Fixed drive
    Drive E is a Fixed drive
    Drive F is a CD-ROM drive
    Drive G is a Fixed drive

The ASP source code for this script, together with a full explanation of how the script works may be found here.

Disk space monitoring script

This ASP script expands on the use of the previous script by describing how to create a dynamic disk space monitor. The techniques used here could be used to ensure that there is enough disk space before a user uploads a large file to the server, or perhaps the code could be used to help create a web based server monitoring tool.

Drive C: [SYSTEM] : Drive C: 45.60 Gb in useDrive C: 34.40 Gb free

The ASP source code for this script, together with a full explanation of how the script works may be found here.

Other resources

bullet.gif (1378 bytes)Sams Teach Yourself Web Development With ASP in 24 Hours. Start learning ASP with this introductory guide.

[ Home ] [ What's New? ] [ Web stuff ] [ Gallery ] [ Table of Contents ] [ Search ] [ Contact ]
[ Winnersh Triangle Web Solutions Limited ]