I have recently found how to Get/Set Filename Attributes in QB64:
DECLARE LIBRARY
FUNCTION GetFileAttributes& (f$)
FUNCTION SetFileAttributes& (f$, BYVAL a&)
END DECLARE
file$ = "c:\qb64\tempfile.000" + CHR$(0)
a = GetFileAttributes(file$)
a = a AND NOT 1 ' reset read-only flag
x = SetFileAttributes(file$, a)
I would like to know if there is a simple method to get the volume label and serial number of a drive.
Gets drive volume label, serial number and file system type. Also counts drives which exist, and gets the drive type. Source is in QB64.