Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8281

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

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Thorsten Kampe <thorsten@thorstenkampe.de>
Newsgroups comp.lang.python
Subject Re: Python 2.7 and cmd on Windows 7 64 (files lost)
Date Thu, 23 Jun 2011 10:08:45 +0200
Lines 14
Message-ID <MPG.286d12f682a331b98981f@news.individual.de> (permalink)
References <4e02de32$0$30749$ba4acef3@reader.news.orange.fr> <mailman.317.1308814289.1164.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain; charset="us-ascii"
Content-Transfer-Encoding 7bit
X-Trace individual.net jPTBVL/oCKhaxFJEdTqQwAbqldUkBL3dsK44dCXpBbB2PvxBY=
Cancel-Lock sha1:kourPxt1Wp5MAWiHxUkMVGnLpUk=
User-Agent MicroPlanet-Gravity/3.0.4
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8281

Show key headers only | View raw


* 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python 2.7 and cmd on Windows 7 64  (files lost) "Michel Claveau - MVP"<enleverLesX_XXmcX@XmclavXeauX.com.invalid> - 2011-06-23 08:33 +0200
  Re: Python 2.7 and cmd on Windows 7 64  (files lost) Thorsten Kampe <thorsten@thorstenkampe.de> - 2011-06-23 09:31 +0200
    Re: Python 2.7 and cmd on Windows 7 64  (files lost) "Michel Claveau - MVP"<enleverLesX_XXmcX@XmclavXeauX.com.invalid> - 2011-06-23 11:10 +0200
      Re: Python 2.7 and cmd on Windows 7 64  (files lost) "Martin v. Loewis" <martin@v.loewis.de> - 2011-06-24 09:34 +0200
  Re: Python 2.7 and cmd on Windows 7 64  (files lost) Tim Golden <mail@timgolden.me.uk> - 2011-06-23 08:31 +0100
    Re: Python 2.7 and cmd on Windows 7 64  (files lost) Thorsten Kampe <thorsten@thorstenkampe.de> - 2011-06-23 10:08 +0200
      Re: Python 2.7 and cmd on Windows 7 64  (files lost) Tim Golden <mail@timgolden.me.uk> - 2011-06-23 09:14 +0100

csiph-web