[BangPypers] Execute Windows "shutdown" command through python !

Noufal Ibrahim noufal at gmail.com
Tue Dec 29 19:42:00 CET 2009

Wouldn't it make more sense for you to use the exposed windows API using the
Python win32 module rather than calling an external program via os.popen? I
googled a little and found
http://msdn.microsoft.com/en-us/library/aa376868(VS.85).aspx which should be
callable. I also found
mentions that setting the appropriate privileges is a pain and
recommends using another module which is linked to.


More information about the BangPypers mailing list