in reply to dir space on remote server

There's one more way, since you are using Windows, i suggest you use WMI (Windows Management Instrumentation)
and use the class "Win32_DiskQuota" or "Win32_LogicalDisk" with Win32::OLE
TIMTOWTDI
Raghu