Total members 11895 |It is currently Sun Dec 22, 2024 9:21 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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...




Author:
Newbie
User avatar Posts: 1
Have thanks: 0 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. :biggrin:

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : diskfree and disk total from cdr's
 Get Disk total space     -  
 calculates the total cost with javascript     -  
 calculate the total type of stocks     -  
 getting gst, pst total to diplay in my javascript form     -  
 total ocurrence of substring in sting     -  
 Need help with JavaScript function calculate the total pric!     -  
 How to get hard disk serial no in java ??     -  
 Gui that take direcrtory on hard disk from user     -  
 Get disk free space for Unix-Linux in php     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com