Read Database size, memory and use memory

A

A_PK

Hi, few question regarding database and memory question.

1-How can I read my database size ? my database is xxx.sdf, how can I read
the size using vb.net in pocket pc 2003
2-how can I detect fee memory and used memory size ?
3-if a SD card or CF card is inserted, how could I detect the card size as
well ?

I just want to read all the size, and show on a Label on pocket pc. please
guide me how to read the database, free/used memory and sd/cf card size.

Thank you very much

Regards
 
P

Peter Foot [MVP]

Use the System.IO.FileInfo class e.g.

Dim fi As New FileInfo("\folder\mydatabase.sdf")
Dim filesize As Long = fi.Length

Peter
 
A

A_PK

Dim fi As New FileInfo("\folder\mydatabase.sdf")
there is syntax error for the above coding....i can not compile my project
at all

i tried to change to
Dim fi as New System.IO.FileInfo("\folder\mydatabase.sdf")
got error message when I compile my project....

please guide me how is the correct FileInfo to get the database
 
A

A_PK

I am able to get the file size now...

However, i am still seraching ways to read the free memory and used memory
from the device.
and also read the SD/CF card size. pls guide me
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top