Determining Free Drive Space (Functions/Subroutines/Programs)

To determine the amount of available space on a particular drive, developers have used the undocumented DiskSize function and DSpace subroutine, both of which return an invalid amount if the amount of free space exceeds 2GB.  This problem has been corrected for the 3.4 release.  For versions of OpenInsight previous to 3.4, a work-around is available by using the DSpace subroutine and calculating the available space based on the return values.  The first text link below shows how to calculate the total and free disk space, and the second shows a simple test program for displaying this information from the System Editor command line (e.g. Run ShowDiskSize"C").

{{kb0137_1.png}} {{kb0137_2.png}} 

  • kb/kb_articles/kb0137.txt
  • Last modified: 2024/01/30 13:36
  • by 127.0.0.1