How to find out free disk space on a share via win32api?

Lexy Zhitenev zhitenev at cs.vsu.ru
Tue May 6 12:07:34 EDT 2003


Thank you, Joe. I have already found a solution that fits my case. I don't
have Administrator rights in the domain, so the WMI example won't help me.
And I want to know, how much space is available to me, a simple user.

>>> import win32file
>>> win32file.GetDiskFreeSpaceEx(r'\\serv\shr1')
[134193152, 13571710976L, 134193152]

Regards, Lexy.






More information about the Python-list mailing list