Hello
Here is a script that calculates the percent of freespace in your harddrive system.
You can add an alert if the space is too small
ex : if(TotalFree<500) then ... end if
if you have little space, premise can crash !!!
you can do an automatisation to send an alert email or recalculate all hours
bye bye
Jean-Michel
Here is a script that calculates the percent of freespace in your harddrive system.
You can add an alert if the space is too small
ex : if(TotalFree<500) then ... end if
if you have little space, premise can crash !!!
you can do an automatisation to send an alert email or recalculate all hours
Set fso = CreateObject("Scripting.FileSystemObject")
Set drives = fso.Drives
Dim TotalFree,TotalSize
For Each driveObject In drives
If driveObject.DriveLetter = "C" then
TotalSize = driveObject.TotalSize / 1048576
TotalFree = driveObject.FreeSpace / 1048576
alert(round(TotalFree*100/TotalSize,2) & " % free")
End If
Next
bye bye
Jean-Michel