' Get the available disk space in a universal way Public Function GetAvailableDiskSpace() As Boolean Dim lcLine As String = "" Dim lcProviderName As String = "" Dim lcVolumeName As String = "" Dim lnLocation As Integer = 0 Dim loProcessFile As Framework.ProcessFile = New Framework.ProcessFile(oApp) ' Reset the values cMessage = "" nFreeSpace = 0 ' Initialization lcProviderName = Trim(cProviderName) lcVolumeName = Trim(cVolumeName) ' Execute the command loProcessFile.cWorkingDirectory = "c:\Windows\System32" loProcessFile.cFileName = "c:\Windows\System32\cmd.exe" loProcessFile.cArguments = "/c dir \\" + lcProviderName + "\" + lcVolumeName + " | find /i ""bytes free""" If Not loProcessFile.Process() Then cMessage = loProcessFile.cMessage Return False End If ' Initialization lcLine = loProcessFile.cOutput ' Parse the number of bytes lnLocation = oApp.At(" Dir(s) ", lcLine) lcLine = Mid(lcLine, lnLocation + 9) lnLocation = oApp.At(" bytes free", lcLine) lcLine = Mid(lcLine, 1, lnLocation - 1) ' Remove the spaces lcLine = oApp.StrTran(lcLine, Chr(255), "") ' Remove the commas lcLine = oApp.StrTran(lcLine, ",", "") ' Initialization nFreeSpace = Val(lcLine) Return True End FunctionIt does not give me the total available disk space, but at least, I can know how much remains.