Sorry, I thought it was related to python but actually not : http://msdn.microsoft.com/en-us/library/aa384187%28v=vs.85%29.aspx
On 03/02/2012 11:38, le dahut wrote :
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.
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32