[Solved] How to Determine Free Space on a USB Flash Drive
Posted: Sun Mar 09, 2014 12:17 am
I have a Base program that collects a list of MP3 filenames that will be copied to a USB drive. I can compute the total space that will be taken for the file copy operation. However, I have been unsuccessful in figuring out a Base macro that would compute the free space available on the USB flash drive.
I first attempted to use the shell function, but that did not work. I tried various permutations (including using pwd) but kept getting 0. (df by itself lists the free space on all mounted devices.)
I have also located getFreeSpace under the API documentation.
Unfortunately, I do not know enough on how to utilize this method, assuming that it would be possible to use it in a Base macro.
Any suggestions on how to fix or utilize an alternative approach?
I first attempted to use the shell function, but that did not work. I tried various permutations (including using pwd) but kept getting 0. (df by itself lists the free space on all mounted devices.)
Code: Select all
strSize=shell("bash df")Unfortunately, I do not know enough on how to utilize this method, assuming that it would be possible to use it in a Base macro.
Any suggestions on how to fix or utilize an alternative approach?