On 23/06/2011 09:08, Thorsten Kampe wrote:
* Tim Golden (Thu, 23 Jun 2011 08:31:26 +0100)

Certain commands, including "dir" and "copy" are not executables
in their own right, but merely subcommands of cmd.exe.

Right, "internal commands".

You've got two options in Python:

    os.system (r"cmd /c dir c:\windows")

os.system automatically runs a shell (cmd) - see the documentation.

Thanks: should have checked my sources before writing :(

TJG
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to