We help IT Professionals succeed at work.

WIndows Explorer Misreports Files Size on Mount Points

How can this be fixed?  Or is there a better way of seeing free space?

My WIndows Explorer Mis-reports Files Size on Mount Points.

My drive T:  has a mix of File Folders and Mounted Volumes (aka Mount Points?)

Windows explorer shows 10 MB available on drive T:,  yet when I go through the mounted volumes I see Gigs of space.
Comment
Watch Question

Solutions Architect
Commented:
Windows does not include mounted folders in its calculation of disk space, or available disk space.

If I have a 100 gig volume, that has 80 gigs free, and on that volume I have a folder that I mount a brand new, empty 1TB drive... explorer will still report that drive as being a 100 gig volume with 80 gigs free.

Author

Commented:
JRH,

Do you know of  DOS scripts that provide the information on the free space on Mount Points?
jrhelgesonSolutions Architect
Commented:
Try this script:
http://forums.techarena.in/windows-server-help/934147.htm
 
Set objDISKWMIService = GetObject _
("winmgmts:\\" & strComputer & "\root\cimv2")
Set colDiskItems = objDISKWMIService.ExecQuery _
("Select * from Win32_Volume")

For Each objDiskItem in colDiskItems
if objDiskItem.DriveType = 3 then

strDiskSize = round(objDiskItem.Capacity /1073741824,3)

strDisk = strDisk & vbCr & _
"Drive Letter: " & objDiskItem.Name & vbCr & _
"Device ID : " & objDiskItem.DeviceID & vbCr & _
"Disk Size : " & strDiskSize & vbCr & "Free Space : " _
& Int(objDiskItem.FreeSpace /1048576) & " MB" & vbCr & _
" ========================="

If LogPositivesOnly then
If strDiskSize > 0 then MyFile.WriteLine StrComputer & ";" &
objDiskItem.Name & ";" & objDiskItem.Label & ";" & strDiskSize & ";" &
round(objDiskItem.FreeSpace/1073741824,3) & ";" & objDiskItem.FileSystem &
";" & objDiskItem.DriveType

Else
MyFile.WriteLine StrComputer & ";" &
objDiskItem.Name & ";" & objDiskItem.Label & ";" & strDiskSize & ";" &
round(objDiskItem.FreeSpace/1073741824,3) & ";" & objDiskItem.FileSystem &
";" & objDiskItem.DriveType
End if
end if

Open in new window