Total members 10249 | Gratitudes |It is currently Thu May 17, 2012 7:56 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: diskfree and disk total from cdr's
PostPosted: Tue Jul 03, 2007 11:48 pm 
Offline
Newbie
User avatar

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


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: diskfree and disk total from cdr's
PostPosted: Wed Jul 04, 2007 12:42 pm 
Offline
Mastermind
User avatar

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

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  

 Similar topics
 total ocurrence of substring in sting
 getting gst, pst total to diplay in my javascript form
 total
 How to get hard disk serial no in java ??
 calculates the total cost with javascript
 Need help with JavaScript function calculate the total pric!
 CBT Nuggets 70-270 Disk 01
 Testout 070-270 Disk 1 & 2
 CBT Nuggets 70-270 Disk 02
 Get disk free space for Unix-Linux in php

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 2 guests



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team