Re: How to check for remaining hard drive space in Windows?
- From: "Jerry Hill" <malaclypse2@xxxxxxxxx>
- Date: Wed, 28 Feb 2007 17:08:34 -0500
On 2/28/07, Tim Golden <mail@xxxxxxxxxxxxxxx> wrote:
Well it's not often someone beats me to a WMI
solution :) Just to be different, you can also
look at the GetDiskFreeSpace function in the
win32api module of the pywin32 extensions.
The MSDN page for that function warns:
"The GetDiskFreeSpace function cannot report volume sizes that are
greater than 2 gigabytes (GB). To ensure that your application works
with large capacity hard drives, use the GetDiskFreeSpaceEx function."
Make sure to keep that in mind if you're recording free disk space
someplace, rather than just checking for enough space to do an install
or something.
--
Jerry
.
- References:
- How to check for remaining hard drive space in Windows?
- From: kevinliu23
- How to check for remaining hard drive space in Windows?
- Prev by Date: Re: How to check for remaining hard drive space in Windows?
- Next by Date: Re: class declaration shortcut
- Previous by thread: Re: How to check for remaining hard drive space in Windows?
- Next by thread: Extract String From Enclosing Tuple
- Index(es):