You can also use WMI's Win32_LogicalDisk class:

  http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_logicaldisk.asp

In particular, the FreeSpace, DeviceID, and DriveType properties
should be of interest.

To experiment, download instances.pl from
<http://unattended.sourceforge.net/apps.html#instances> and try
running "instances.pl --remote <host> Win32_LogicalDisk".

This approach is likely to be simpler and more future-proof than
Win32::AdminMisc.

 - Pat
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to