How to: Get Filesize / Free Space

  • Thread starter Thread starter Boris Nienke
  • Start date Start date
B

Boris Nienke

Hi,

i would like to know if there's enough Space on the destination ("/" or
"/SD-Card", ....) to copy a file.

Now i don't know how to:
- Get the size of a file
- Get the free space off the destination directory

thank you

Boris
 
File size: Fileinfo.Length
Free space - PInvoke GetDiskFreeSpaceEx
To find a memory card use FindFirstFlashCard/FindNextFlashCard
 

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

Back
Top