VFP - Determine Drive Space and Serial Number
I did a search and could not find out how to do this, So I did it myself.
objFSO = CreateObject('Scripting.FileSystemObject')
objDrive = objFSO.GetDrive('C:')
MESSAGEBOX('Available space: ' + chr(13)+TRANSFORM(objDrive.AvailableSpace,'999,999,999,999,999'+' kb' ))
MESSAGEBOX(objDrive.SerialNumber)
I did a search and could not find out how to do this, So I did it myself.
objFSO = CreateObject('Scripting.FileSystemObject')
objDrive = objFSO.GetDrive('C:')
MESSAGEBOX('Available space: ' + chr(13)+TRANSFORM(objDrive.AvailableSpace,'999,999,999,999,999'+' kb' ))
MESSAGEBOX(objDrive.SerialNumber)