Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Retrieve free space

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-20-2008, 07:41 PM
MM2forever's Avatar
Senior Member
 
Join Date: Jun 2007
Location: Germany
Posts: 103
Send a message via ICQ to MM2forever Send a message via MSN to MM2forever Send a message via Skype™ to MM2forever
Default Retrieve free space

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
__________________
Regards, Christian

Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 08:26 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

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?
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 08:45 PM
MM2forever's Avatar
Senior Member
 
Join Date: Jun 2007
Location: Germany
Posts: 103
Send a message via ICQ to MM2forever Send a message via MSN to MM2forever Send a message via Skype™ to MM2forever
Default

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
__________________
Regards, Christian


Last edited by MM2forever : 04-20-2008 at 08:45 PM. Reason: spelling mistake
Reply With Quote
  #4 (permalink)  
Old 11-17-2008, 07:42 AM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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
Reply With Quote
  #5 (permalink)  
Old 11-22-2008, 03:16 PM
MM2forever's Avatar
Senior Member
 
Join Date: Jun 2007
Location: Germany
Posts: 103
Send a message via ICQ to MM2forever Send a message via MSN to MM2forever Send a message via Skype™ to MM2forever
Default

I also thought about that, but then theres still the question how to get the actual total space of a memory device available
__________________
Regards, Christian

Reply With Quote
  #6 (permalink)  
Old 11-22-2008, 04:50 PM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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
File Type: zip StorageCard.zip (2.2 KB, 17 views)
Reply With Quote
  #7 (permalink)  
Old 09-12-2009, 08:05 PM
Senior Member
 
Join Date: Sep 2009
Location: Surrey, UK
Posts: 111
Default

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
Reply With Quote
  #8 (permalink)  
Old 09-17-2009, 10:27 PM
Senior Member
 
Join Date: Sep 2009
Location: Surrey, UK
Posts: 111
Default

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

Give that man a medal!

Caravelle
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ctl-Space problem? agraham Bug Reports 4 06-17-2008 05:29 PM
Retrieve version timsteeman Questions (Windows Mobile) 8 11-16-2007 06:43 PM
retrieve labelnames on a form Scubaticus Questions (Windows Mobile) 1 08-03-2007 10:51 PM
Free Icons web site lists Cableguy Code Samples & Tips 3 07-05-2007 09:32 AM
Space saving with formatted text? mwaite Questions (Windows Mobile) 5 05-26-2007 04:36 PM


All times are GMT. The time now is 09:15 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0