Question subject: diskfree and disk total from cdr's
Posted: Tue Jul 03, 2007 11:48 pm
Joined: Tue Jul 03, 2007 11:30 pm Posts: 1 Has thanked: 0 time Have thanks: 0 time
I currently use C-Builder 5 and I am trying to get the diskfree and disk totals from CDR's that haven't been closed yet... using the code below they always come back as 0... though if I check the 'My computer', 'properties', the proper amounts show up...
__int64 AmtFree = DiskFree(jkc); __int64 Total = DiskSize(jkc); AnsiString S; S.sprintf("%I64d percent is free: %I64d KB", AmtFree*100/Total, AmtFree/1024 );
note also that fixed disks as well as CDRW's (drag and drop) work fine...
msi_333
Question subject: Re: diskfree and disk total from cdr's
Posted: Wed Jul 04, 2007 12:42 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2272 Location: Earth Has thanked: 39 time Have thanks: 61 time
rsmith5413 wrote:
I currently use C-Builder 5 and I am trying to get the diskfree and disk totals from CDR's that haven't been closed yet... using the code below they always come back as 0... though if I check the 'My computer', 'properties', the proper amounts show up...
__int64 AmtFree = DiskFree(jkc); __int64 Total = DiskSize(jkc); AnsiString S; S.sprintf("%I64d percent is free: %I64d KB", AmtFree*100/Total, AmtFree/1024 );
note also that fixed disks as well as CDRW's (drag and drop) work fine...
Thank you for posting this here.
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )