Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get hd free space
#1
how do i get the free space info of a drive into a variable (in gb or mb) ?

thanks
pi
#2
Code:
Copy      Help
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


Forum Jump:


Users browsing this thread: 1 Guest(s)