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

Pradeep Gowda pradeep at btbytes.com
Tue Dec 29 15:54:22 CET 2009

On Tue, Dec 29, 2009 at 9:22 AM, ™aßlเίlαslเ ► <abhilash.pin2 at gmail.com> wrote:

> *import os
> os.system("shutdown /?")*
> *its saying "shutdown is not an internal or external command or executable
> batch file"*

Is shutdown a valid command in the new OS?
Atleast it looks like that from the error message.

Try running `shutdown` from the command line and see whether you get
the same error.

More information about the BangPypers mailing list