Posted on 1998-08-26
One last problem with my "getdiskspace" function...
The RootPathName has to hold the app path to give over to the api call, I've tried declaring the variable as a string but that caused problems, I thought the below code would work but it keeps coming up garbage. Code follows ->
RootPathName = char(_getdrive() + 'A' -1);
RetVal = GetDiskFreeSpace(RootPathName,&SectorsPerCluster,