Question

How can I find out how much free disk space is available for my application?

How can I find out how much free disk space is available for my application?

Answer:

You can view the free disk space available for your application using a <getFreeDiskSpace> action. This action will retrieve the amount of disk space available on the drive partition holding a particular directory. The directory is specified in the 'path' argument and the value (in Kb) will be stored in the variable specified by 'variable'. For example:

<getFreeDiskSpace>
 <variable>diskspace</variable>
 <path>${installdir}</path>
</getFreeDiskSpace>