Thread: problem with DiskFree with cdr's

  1. #1
    Registered User
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    3

    problem with DiskFree with cdr's

    given the following code...

    __int64 AmtFree = DiskFree(0);
    __int64 Total = DiskSize(0);
    AnsiString S;
    S.sprintf("%I64d percent of the space on drive 0 is free: %I64d KB", AmtFree*100/Total, AmtFree/1024 );

    This works fine with fixed disk and cdrw's with drag and drop... basically
    any disk with a file system on it...

    what I'm looking for is a way to get this diskfree and disktotal from a
    cdr that had not been closed yet...

    thanks,

  2. #2
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    That's not even remotly possible. Dude, if the CDR is open, the CD can't even be read, so how could the computer find that out?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  2. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  3. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  4. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  5. beginner problem
    By The_Nymph in forum C Programming
    Replies: 4
    Last Post: 03-05-2002, 05:46 PM