[python-win32] Seven 64bits and system32/syswow64 paths

le dahut le.dahut at laposte.net
Fri Mar 2 11:38:27 CET 2012


Hi.

On a Windows Seven 64bits host with 32bits version of python installed.

In a MSDOS prompt I run :
   nbtstat -R
command runs well.

In a python prompt I run :
   import os
   os.system('nbtstat -R')
I get :
   "nbtstat is not recognized as an internal or external command"


Using explorer I've found "nbtstat.exe" in C:\Windows\System32.

In a MSDOS prompt :
   dir C:\Windows\System32\nbtstat.exe
finds the file.

In a python prompt :
   os.system('dir C:\\Windows\\System32\\nbtstat.exe')
returns "File not found".

It seems that :
* in MSDOS prompt C:\Ẁindows\System32  and C:\Ẁindows\SysWOW64 are two 
separate dirs with different content
* in a python prompt C:\Ẁindows\System32 = C:\Ẁindows\SysWOW64 (same 
content)

Any idea ?


I want an .exe that runs on both 32 and 64 bits systems. I don't want to 
build separate exes. That's why I work with 32bits version of python on 
a 64bits host.
If someone has any comment about this, he's welcome.


Regards.
K.


More information about the python-win32 mailing list