View previous topic :: View next topic |
Author |
Message |
rileyesi
Joined: 19 Dec 2006 Posts: 398
|
Posted: Wed Mar 21, 2007 6:12 pm Post subject: Free Disk Space? |
|
|
Hi.
Is there a way in AVR-DOS to measure how much storage space is remianing on an SD card? I want to get a warning if I am nearing my disk storage capacity.
Thanks and Regards,
Pete |
|
Back to top |
|
|
oe9vfj
Joined: 17 Jun 2004 Posts: 269 Location: Austria, Hard
|
Posted: Thu Mar 22, 2007 7:35 am Post subject: |
|
|
Yes, Use DISKFREE().
You get remaining disksize in KB. _________________ regards Josef
DOS - File System for BASCOM-AVR on http://members.aon.at/voegel |
|
Back to top |
|
|
rileyesi
Joined: 19 Dec 2006 Posts: 398
|
Posted: Thu Mar 22, 2007 5:30 pm Post subject: |
|
|
Thank you, Josef. I missed that in the documentation.
Pete |
|
Back to top |
|
|
oe9vfj
Joined: 17 Jun 2004 Posts: 269 Location: Austria, Hard
|
|
Back to top |
|
|
rileyesi
Joined: 19 Dec 2006 Posts: 398
|
Posted: Sat Mar 24, 2007 7:30 pm Post subject: |
|
|
Josef,
Please don't misunderstand me!
My comment was not a criticism of your wonderful AVR-DOS or the documentation, but a criticism of my failure to see this in the manual!
Regards,
Pete |
|
Back to top |
|
|
wilbo666
Joined: 13 Jan 2006 Posts: 18 Location: QLD, Australia
|
Posted: Fri Aug 01, 2008 12:46 pm Post subject: |
|
|
oe9vfj wrote: | Yes, Use DISKFREE().
You get remaining disksize in KB. |
The help says diskfree() returns in bytes...is the help wrong?
Syntax
lFreeSize = DISKFREE()
Remarks
lFreeSize
A Long Variable, which is assigned with the available Bytes on the Disk in Bytes
Cheers
Wilbo |
|
Back to top |
|
|
oe9vfj
Joined: 17 Jun 2004 Posts: 269 Location: Austria, Hard
|
Posted: Fri Feb 20, 2009 1:59 pm Post subject: |
|
|
DISKSIZE and DISKFREE return the space in KB (1024 Bytes) unit. I changed that with implementation of FAT32, because this skips over the 2GB border which is the maximum of a LONG Variable. _________________ regards Josef
DOS - File System for BASCOM-AVR on http://members.aon.at/voegel |
|
Back to top |
|
|
|