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

™aßlเίlαslเ ► abhilash.pin2 at gmail.com
Tue Dec 29 15:22:28 CET 2009


Hi,

I want to execute windows system command "shutdown" through python,
os.system( ). I can do it in a 32 bit Windows,
But not in 64 bit Windows where as I do have admin rights to run the
"shutdown " command and which is working in windows command prompt.

python ver. 2.5
Exp.

*import os
os.system("shutdown /?")*

*its saying "shutdown is not an internal or external command or executable
batch file"*

Thanks,
Abhilash


More information about the BangPypers mailing list