dll kernel32 #GetDiskFreeSpaceEx $lpDirectoryName long*lpFreeBytesAvailable long*lpTotalNumberOfBytes long*lpTotalNumberOfFreeBytes long nfree GetDiskFreeSpaceEx("c:" &nfree 0 0) long kb=nfree/1024 double mb=nfree/1024.0/1024.0 out "bytes %I64i, KB %I64i, MB %g" nfree kb mb