[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: How to check for remaining hard drive space in Windows?
From:       "Jerry Hill" <malaclypse2 () gmail ! com>
Date:       2007-02-28 22:08:34
Message-ID: 16651e80702281408v6e51f654o17c31e1c9288e1eb () mail ! gmail ! com
[Download RAW message or body]

On 2/28/07, Tim Golden <mail@timgolden.me.uk> 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
-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic