Title: RE: AdminMisc - Drive Space

There is a VBScript that comes with the Windows 2000 Resource Kit that gives you that information.  I haven't seen something that does it in perl.

I will look into the VBScript and see if it can be replicated in perl.
But here is what the output looks like:
C:\ResKit>cscript DRIVES.VBS
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.


IC25N030ATDA04-0:   Disk drive
Status:             OK
Media Loaded:       Yes
Partitions:         2
System Name:        EBZ-1QZ4L
Manufacturer/Model: (Standard disk drives) IC25N030ATDA04-0
Size:               30,005,821,440
Total Cylinders:    3,876
Total Heads    :    240
Total Sectors:      58,605,120
Total Tracks:       930,240
Sectors Per Track:  63
Tracks Per Cylinder:240
Bytes Per Sector:   512
Name:               \\.\PHYSICALDRIVE0
Creation Class Name:Win32_DiskDrive

C:\ResKit>

> -----Original Message-----
> From: Crosby, Sam [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 2:19 PM
> To: [EMAIL PROTECTED]
> Cc: 'Thomas Browner'
> Subject: RE: AdminMisc - Drive Space
>
>
> I haven't had any luck with Win32::DriveInfo yet.  I have not
> been able
> to retrieve any info from any Win2k computers, but have from
> Win95.  The
> documentation makes reference to Win95 computers but not
> about Win2K - I
> wonder if it is limited to none NTFS drives. So my need appears to
> remain...
>
>  
> -----Original Message-----
> From: Thomas Browner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 11, 2003 2:30 PM
> To: 'Crosby, Sam'; [EMAIL PROTECTED]
> Subject: RE: AdminMisc - Drive Space
>  
> Have you tried to use:
> win32::DriveInfo;
>  
> Thomas
>  
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of
> Crosby, Sam
>
> Sent: Tuesday, February 11, 2003 12:58 PM
> To: '[EMAIL PROTECTED]'
> Subject: AdminMisc - Drive Space
>  
> I have AS Perl v5.6.1 "built for MSWin32-x86-muti-thread" on my
> computer.  I have not found a recent version of AdminMisc
> that will load
> on that so far.   I need to obtain information about drives on remote
> servers (sectors, sector size, ....and free space) and wonder what
> alternatives are available.  I need to get this information for drives
> on those machines as well as mounts.....
>
>  
> Sam F. Crosby
>  
>
>

Reply via email to