Standard Posted by grizzlej Posted on March 3, 2013 Posted under Uncategorized Comments 2 Comments DFNS for reporting disk space Hi I’m currently looking into making an application where I need to know the available/ total disk space of the various disks on a system. Is there any DFNS or any other way to achieve this? Thanks James. Advertisements Share this:TwitterFacebookLike this:Like Loading... Related APLDyalog Post navigation ← Date Time Picker Change default Dyalog → 2 thoughts on “DFNS for reporting disk space” Win32: http://msdn.microsoft.com/en-us/library/windows/desktop/aa364937(v=vs.85).aspx .NET: http://stackoverflow.com/questions/1393711/c-sharp-get-free-disk-space “Easy” exercise for the reader the conversion of the Win32 call to a NA signature or the .NET samples written in C# to Dyalog APL… Reply By the way, on the APL Wiki there’s a library of functions ready to be used: http://aplwiki.com/WinSys I wouldn’t have written the NA signature the way it’s done in the available code. U8 is a valid output type and doesn’t require postprocessing in APL. Notice that U8 is not a native type, though, which means that Dyalog APL maps it to a floating point number. Therefore it cannot precisely represent the full range (2*64) of the original. I believe that the available precision (down to the byte) is sufficient to cope with existing HDs and future HDs for a few years. Reply Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. ( Log Out / Change ) You are commenting using your Twitter account. ( Log Out / Change ) You are commenting using your Facebook account. ( Log Out / Change ) You are commenting using your Google+ account. ( Log Out / Change ) Cancel Connecting to %s Notify me of new comments via email.