Created
June 8, 2016 23:11
-
-
Save jlafitte/9807c23107969fb6c7e3eb2d83d1d978 to your computer and use it in GitHub Desktop.
Get disk space in ASP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
function getGB(bytes) | |
getGB = Fix(bytes / 1073741824) | |
end function | |
Set fso = CreateObject("Scripting.FileSystemObject") | |
Set d = fso.GetDrive("C:") | |
response.write getGB(d.FreeSpace) & "GB free of " & getGB(d.TotalSize) & " GB" | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment