PDA

View Full Version : FreeDiskSpace



NewsArchive
06-25-2005, 08:20 AM
I am using Windows XP - SP 2

Getting Free Diskspace in the Script Builder seems to be off:

It is returning: 62,022,692

But, when I right-click, properties on the drive (C drive), I get:

59.1Gb (63,511,236,608)

It is a 74gig drive. I do not have anything special like Compression.
(NTFS - Local Disk)


Set Variable %IQ_FREE_DISKSPACE% to GetSystemInfo(Free Disk Space) of
"%_SB_INSTALLDIR%"
Message Box "%IQ_FREE_DISKSPACE%" -- "test"

I'll assume (from using the Windows API) that you can get Free Disk Space
from "C:\program files\roommaster" and not have to specifically say "C:"
..... also, if the user selected a UNC path for the installation, it has to
work properly as well:

\\SERVER_WASHINGTON\Applications\roomMaster

-Robert

NewsArchive
06-25-2005, 08:21 AM
Hi Robert,

>It is returning: 62,022,692
>
>But, when I right-click, properties on the drive (C drive), I get:
>
>59.1Gb (63,511,236,608)

62,022,692 * 1024 = 6.351,123,661^10 according to my calculator. The
returned number is in K.

Best regards,

ArnĂ³r Baldvinsson
Icetips Software
San Antonio, Texas, USA

NewsArchive
06-25-2005, 08:21 AM
Thanks.

-Robert