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

Michel Claveau - MVP enleverLesX_XXmcX at XmclavXeauX.com.invalid
Thu Jun 23 02:33:20 EDT 2011


Hi!

(sorry for my bad english...)

On Win 7 64 bits:
  Command-Line
  CD \Python27
  dir C:\Windows\System32\SoundRecorder.exe    :==> OK
  Python.exe

>>> import os
>>> os.system("dir C:\\Windows\\System32\\SoundRecorder.exe")  

==> Do not found the file !!!

and os.system("cmd /k")  then  "dir C:\Windows\System32\SoundRecorder.exe"  do not found
anyway.

But:
  {Ctrl-Z} in Python
  then  dir C:\Windows\System32\SoundRecorder.exe  run OK

Therefore, is the problem only in Python? 


@+
-- 
Michel Claveau 

  



More information about the Python-list mailing list