; Module/File: File_GetMountedVolumes1.pb ; Function: File_GetMountedVolumes - Linux ; Author: Shardik ; Date: Sep. 09, 2014 ; Version: 0.1 ; Target Compiler: PureBasic 5.22/5.31 ; Target OS: Linux: (X/K/L)ubuntu, Mint, 32/64, Ascii/Uni ; Link to topic: http://www.purebasic.fr/english/viewtopic.php?f=15&t=46118 ;-------------------------------------------------------------- ;citation: ;If you prefer To get all space values in the same notation, change "-h" against ;"-B K" For KB, "-B M" For MB Or "-B G" For GB) ProgramID = RunProgram("df", "-h -T", "", #PB_Program_Open | #PB_Program_Read) If ProgramID While ProgramRunning(ProgramID) If AvailableProgramOutput(ProgramID) Output$ + ReadProgramString(ProgramID) + #CR$ EndIf Wend CloseProgram(ProgramID) Debug Output$ EndIf ; IDE Options = PureBasic 5.46 LTS Beta 2 (Linux - x86) ; CursorPosition = 9 ; EnableUnicode ; EnableXP