[python-win32] win32file.CreateFile() parameter incorrect

2012-01-10 Thread wangsuyi640
Hi I tried the code as follows on my PC. import os import win32file import win32con path = "C:\\test" FILE_LIST_DIRECTORY = 0x0001 BUFFER_SIZE = 2048 hDir = win32file.CreateFile ( path, FILE_LIST_DIRECTORY, win32con.FILE_SHARE_READ | win32con.FILE_SHARE_WRITE, Non

[python-win32] get model PC

2012-01-10 Thread pacopyc pacopyc
Hi, how can I get the model of remote computers? es. HP Compaq 6510b, IBM 2653, Toshiba Satellite Pro L670-11E, Thanks. pacopyc ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] get model PC

2012-01-10 Thread Kris Hardy
On 1/10/2012 9:37 AM, pacopyc pacopyc wrote: Hi, how can I get the model of remote computers? es. HP Compaq 6510b, IBM 2653, Toshiba Satellite Pro L670-11E, Look at these registry keys: HKEY_LOCAL_MACHINE\DESCRIPTION\SYSTEM\BIOS HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio

Re: [python-win32] win32file.CreateFile() parameter incorrect

2012-01-10 Thread Tim Roberts
wangsuyi640 wrote: > Hi > I tried the code as follows on my PC. > ... > > > my platform is Windows XP SP3, and the version of python is 2.6.6, > the version of pywin32 is pywin32-216.win32-py2.6.exe. > > I have tried plenty of exmples on the Internet, by got almost the same > error: > "pywin

Re: [python-win32] get model PC

2012-01-10 Thread Tim Roberts
pacopyc pacopyc wrote: > Hi, how can I get the model of remote computers? > > es. HP Compaq 6510b, IBM 2653, Toshiba Satellite Pro L670-11E, In general, this is marketing information that is only stored on a sticker. Most computers do not know their own model number. -- Tim Roberts, t...@p

Re: [python-win32] get model PC

2012-01-10 Thread He Jibo
How about BIOS information? can we extract this? --- He Jibo Department of Psychology, Beckman Institute for Advanced Science and Technology University of Illinois, Urbana Champaign, 603 East Daniel St., Champaign, IL 61820 website: www.hejibo.info On Tue, Jan 10, 2012 at