Re: How to check for remaining hard drive space in Windows?



kevinliu23 wrote:
Thanks so much for the help guys. I got the code Sick Monkey provided
to work on my computer. Now I"m more confused than ever though. :) I
thought the only standard modules provided by Python are listed here:

http://docs.python.org/modindex.html

But it appears that there are other modules available to me without
having to download third party code. Could someone point me to the
documentation of these other modules such as win32com.client? Thanks
everyone for your help. :)

Chances are you're running the ActiveState distro
of Python. Either that or you downloaded the pywin32
extensions in your sleep:

http://pywin32.sf.net

In any case, that's where the win32com.client and
friends come from. The installation normally supplies
a handy .chm file which gives all the docs.

Also, how could I get the computer name?

You can do that with WMI as well. Just look at
the Win32_ComputerSystem object and its Caption
attribute:

http://msdn2.microsoft.com/en-us/library/aa394102.aspx

TJG
.



Relevant Pages

  • [perl-python] 20050125 standard modules
    ... # some venture into standard modules ... # interactive mode in Python terminal ... to see where is the standard modules located, ... this post is from the Perl-Python a-day mailing list at ...
    (comp.lang.perl.misc)
  • [perl-python] 20050125 standard modules
    ... # some venture into standard modules ... # interactive mode in Python terminal ... to see where is the standard modules located, ... this post is from the Perl-Python a-day mailing list at ...
    (comp.lang.python)
  • Re: Python Web Programming - looking for examples of solid high-traffic sites
    ... Outside the standard modules, it gets ... It's a good language, but the library situation is poor. ... You know, submitting bug reports, patches, etc., can help make Python better. ... getting modules and packages installed from the Cheese Shop is pretty painless. ...
    (comp.lang.python)
  • Re: Command line
    ... function in python? ... Although it's a long list, it is worthwhile as a newbie for one to peruse the list of standard modules from time to time, until you gain a familiarity with what is there. ...
    (comp.lang.python)