You could run this command through a system call.. variable =
system(df -k)then just assign the returned string to a variable.
Can't help you with other methods..  Luck to you.

Jeff Hogg
-----Original Message-----
From: Jiang XU <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, November 03, 1999 12:05 PM
Subject: again How to get the block size of the disk


>What I need is to get such information through the function call, not
through
>the command line.  So that I can put it in my program. My Program needs
that.
>
>Scott Skrogstad wrote:
>
>> Just type df -k  and that will show you all the mounted partitions and
>> there sizes..
>>
>> Scott Skrogstad
>>
>>                 -----Original Message-----
>>                 From:   Jiang XU [SMTP:[EMAIL PROTECTED]]
>>                 Sent:   Wednesday, November 03, 1999 10:05 AM
>>                 To:     [EMAIL PROTECTED]
>>                 Subject:        How to get the block size of the disk
>>
>>                 I try to use the function call l to get the disk
>> information.
>>                 I want to know:
>>                 1.   How much free space does a disk have.
>>                 2.   The block size of the disk.
>>                 3.    The sector size of the disk
>>
>>                 I wonder how I can do that through the function call,
>> which function I
>>                 should use?
>>
>>                 Thanks
>>
>>                 --
>>                 To unsubscribe: mail [EMAIL PROTECTED] with
>> "unsubscribe"
>>                 as the Subject.
>>
>>   -----------------------------------------------------------------------
-
>>
>>    Part 1.2    Type: application/ms-tnef
>>            Encoding: base64
>
>
>--
>To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
>as the Subject.
>


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to