How to check for remaining hard drive space in Windows?

Tim Golden mail at timgolden.me.uk
Thu Mar 1 06:48:41 EST 2007


kevinliu23 at gmail.com wrote:
> HI,
> 
> I am new to Python and wanted to know how to check for the remaining
> disk space on my Windows machine using Python? I was thinking of using
> the command line "dir" and trying to extract the output from there.
> But I'm not sure how to extract command line strings using Python
> either.

And, just for the record, there's even a few other
techniques outlined here:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66455

TJG




More information about the Python-list mailing list