Monday, December 17, 2007

How to check the C drive if it still has more space

How to check the C drive if it still has more space

S T E P - 1

- We need to use the FileSystemObject object to get the information:

<%

Dim fSys, oDrive

Set fSys = CreateObject("Scripting.FileSystemObject")

%>

S T E P - 2

-In the FileSystemObject, we can find a Drives properties. This properties can return all drive information:

<%

Set oDrive = fSys.GetDrive("c:")

Response.write("Free space on C: is " & oDrive.freespace)

%>


No comments: