Python 2.7 and cmd on Windows 7 64 (files lost)
Thorsten Kampe
thorsten at thorstenkampe.de
Thu Jun 23 04:08:45 EDT 2011
* 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.
Thorsten
More information about the Python-list
mailing list