Python 2.7 and cmd on Windows 7 64 (files lost)

Tim Golden mail at timgolden.me.uk
Thu Jun 23 04:14:51 EDT 2011


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



More information about the Python-list mailing list