.NETJiNi@jigneshdesai.com  
  Home |  .NET<1.0 to 3.5> Forums Blogs |  Other Technologies Skip Navigation Links  | Quiz Contest   dotnetJini Training |   Software Development 
   
Topic : Find Free Space of Given Drive
Author : Jignesh Desai Total Visits: 139
Published Date: Tuesday, May 02, 2000  

<%
Function ShowFreeSpace(drvPath)
Dim fso, d, s
Set fso = CreateObject("Scripting.FileSystemObject")
Set d = fso.GetDrive(fso.GetDriveName(drvPath))
s = "<br>Drive " & UCase(drvPath) & " - " 
s = s & d.VolumeName & "<BR>"
s = s & "Free Space: " & FormatNumber(d.FreeSpace/1024, 0) 
s = s & " Kbytes"
ShowFreeSpace = s
End Function

Response.Write ShowFreeSpace("C:")
Response.Write ShowFreeSpace("D:")
Response.Write ShowFreeSpace("F:")

%>








 
   
   
   
Add URL | About ME Privacy Policy | Legal Disclaimer

Copyright (C) 2004 -2008 JigneshDesai.com. All rights reserved