BobSakemano
Technical User
Hey guys,
Could you have a look at tis script
Dim objFSO, objDrives, objDrive
Dim nFreeSpace, nTotalSize, nSpaceUsed, nPercentUsed
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objDrives = objFSO.Drives
For Each objDrive In objDrives
If objDrive.DriveType = 2 And objDrive.DriveLetter = C Then
nFreeSpace = objDrive.AvailableSpace / 1048576
nTotalSize = objDrive.TotalSize / 1048576
nSpaceUsed = nTotalSize - nFreeSpace
If (nSpaceUsed/nTotalSize > 0.90 ) Then
WScript.echo
End If
End If
Next
It doesnt work but maybe you guys can see what I'm doing wrong?
Could you have a look at tis script
Dim objFSO, objDrives, objDrive
Dim nFreeSpace, nTotalSize, nSpaceUsed, nPercentUsed
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objDrives = objFSO.Drives
For Each objDrive In objDrives
If objDrive.DriveType = 2 And objDrive.DriveLetter = C Then
nFreeSpace = objDrive.AvailableSpace / 1048576
nTotalSize = objDrive.TotalSize / 1048576
nSpaceUsed = nTotalSize - nFreeSpace
If (nSpaceUsed/nTotalSize > 0.90 ) Then
WScript.echo
End If
End If
Next
It doesnt work but maybe you guys can see what I'm doing wrong?