Disk Space

diskspace

Compiling

To compile the example:

  • Launch EiffelStudio.
  • Click Add project
  • Browse to $ISE_EIFFEL\examples\wel\diskspace\.
  • Choose diskspace.ecf
  • Choose the location where the project will be compiled, by default the same directory containing the configuration file.
  • Click OK.

Running

After launching the application, you will see text output showing the size and amount of free space available on each of your local drives.

Under the Hood

DISCSPACE_DEMO contains a once feature, diskspace which returns an instance of WEL_DISK_SPACE , used to query the local drives.

This sample contains only one class:

  • DISKSPACE_DEMO
cached: 03/19/2024 12:39:03.000 AM