Retrieve free space

Discussion in 'Questions (Windows Mobile)' started by MM2forever, Apr 20, 2008.

  1. MM2forever

    MM2forever Active Member Licensed User

    Hi guys,
    how can I retrieve the free space of my Main Memory (RAM) or my storage cards ("SD Card" / "iPAQ File Store") ?

    Thank you
    Christian
     
  2. agraham

    agraham Expert Licensed User

    The quick glib banswer is that RAM is reclaimed when your program exits and storage when you delete files! This is probably not what you meant so can you amplify the reason behind your question?
     
  3. MM2forever

    MM2forever Active Member Licensed User

    uh, sorry, my question is easy to missunderstand:

    I actually ment how can I get the value (in e.g. MB / kb) of the actual free available space of the ram or storage cards?
    And how can I get the total available amount of the ram/a storage card?

    Sorry for the inconvenience
     
    Last edited: Apr 20, 2008
  4. Mr_Gee

    Mr_Gee Active Member Licensed User

    This is also something I'd like to know..

    the only workaround would be to search for all files and check the
    size, then then add them all together.
    but this seems a bit too much, there must be an easier way
     
  5. MM2forever

    MM2forever Active Member Licensed User

    I also thought about that, but then theres still the question how to get the actual total space of a memory device available
     
  6. Mr_Gee

    Mr_Gee Active Member Licensed User

    I know this functionality is in the OpenNetCF but it is not usable in its current form..
    I already tried making a usable dll out of it, but i was not really successfull
    i don't get any data back

    If anyone wants to take a crack at it... please be my guest
    file is attached.
     

    Attached Files:

  7. Caravelle

    Caravelle Active Member Licensed User

    I guess I may well be on to a loser here, but I'm working on a program to transfer files from one card to another. It would be really helpful to know if there was enough space on the receiving card to accept the files on the sending card.

    Has anyone got to the bottom of this one yet?

    Thanks

    Caravelle
     
  8. Caravelle

    Caravelle Active Member Licensed User

    See agraham's new DriveInfo library which solves the problem.

    Give that man a medal!

    Caravelle
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice