cancel
Showing results for 
Search instead for 
Did you mean: 

free disk and filex

IVent.1
Senior

Hallo,

does exist, in FileX, a function that returns the free available space not yet utilized?

Thank you.

2 REPLIES 2
mbarg.1
Senior III

 

No

MFARH.1
ST Employee

Hello @IVent.1 ,

Yes, FileX provides a function to retrieve the free available space on a storage volume. The API function to use is:

fx_media_space_available(FX_MEDIA *media_ptr, ULONG *available_bytes_ptr)

  •        media_ptr: pointer to the initialized media control block.
  • available_bytes: pointer to a variable where the amount of free space in bytes will be stored.

 

This function returns the amount of free space in bytes currently available on the specified media.

Regards,

Maher