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
More information about the Python-list mailing list
Thu Jun 23 04:14:51 EDT 2011
- Previous message (by thread): Python 2.7 and cmd on Windows 7 64 (files lost)
- Next message (by thread): Need help about for loop in python 3.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): Python 2.7 and cmd on Windows 7 64 (files lost)
- Next message (by thread): Need help about for loop in python 3.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list