Re: How to get the size of a mounted volume?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Plain vanilla question and answer.

-----------------

Good Luck.

As Keith Olbermann [msnbc] usually says in his desire
not getting hanged after his nightly interpretation of US
computer users affairs.







"cml9076" <cml9076@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:FEF22790-2F6B-4E10-8320-A3168B6F54C2@xxxxxxxxxxxxxxxx
All
I have written a script that goes through all the disks on our file servers
and exports to a csv file the size of the disk and the amount of free space
on the disk. For all the volumes on these servers that are mounted directly
to a drive letter this script works great. The problem comes when I need to
find out the size of a disk volume that is mounted to a folder on a seperate
NTFS volume. For example, there is an X: drive that is 200 GB in size and my
script has no problem getting that info. But, on that X: drive there is a
folder called "mount-point-A" and there is another 200 GB volume mounted to
that folder that my script can't read. It doesn't see X: as being 400 GB
(which is good) but it doesn't see "mount-point-A" as being a sepearte 200 GB
volume.

Here is the code I'm using. Is there an object to get the info from these
mount points?

'Where sDrivePath(z) is a path to a volume that I want to get info on
Set oDrives =
oFSO.GetDrive(oFSO.GetDriveName(oFSO.GetAbsolutePathName(sDrivePath(z))))

'the following just formats the output
sTotalSize = FormatNumber(((oDrives.TotalSize/1024)/1024)/1024, 2)
sFreeSpace = FormatNumber(((oDrives.FreeSpace/1024)/1024)/1024, 2)

Thanks in advance for your help.


.



Relevant Pages

  • Re: Script to mount external drive
    ... Ok I know this should be easy but I need a script to mount an external ... back and I have to open disk utility to remount it again. ... folder, it will mount the disk and open up the folder. ...
    (comp.sys.mac.apps)
  • Re: Script to mount external drive
    ... Ok I know this should be easy but I need a script to mount an external ... back and I have to open disk utility to remount it again. ... folder, it will mount the disk and open up the folder. ...
    (comp.sys.mac.apps)
  • XP Media Center, runs slow, has glitches
    ... Windows Explorer) to be opened. ... select a folder to choose files from, ... The latest chkdsk results ... 75967340kb available on the disk ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Computer running very slow
    ... In Outlook Express you should empty your Deleted Items Folder! ... After compacting you need to run Disk ... Volume fragmentation ... Settings\NetworkService\Local Settings\Temporary Internet ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: How reduce number items listed start menu
    ... is Explorer the only way, ... If you create a folder in the All Users\Start Menu with the same name as one ... Create and Configure User Accounts in Windows XP ... application, Disk copier, etc.) You'll be glad to know that if you have ...
    (microsoft.public.windowsxp.basics)