473,394 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

win32all - determine wrkstn vs. server

Does anyone know of a way to determine whether the current computer
running a python script is a workstation or server?

I've used the following code, but it only tells me the version of
Windows.

(majVer,minVer,buildNum,platID,osInfo) = win32api.GetVersionEx()

Thanks,
Chris

Jul 18 '05 #1
3 1487
ChrisH wrote:
Does anyone know of a way to determine whether the current computer
running a python script is a workstation or server?


What does it mean to you that something is a workstation
or a server? These terms are not precise ones.

Some people run servers as workstations, and vice versa,
for example. On some versions of Windows, the primary
difference was in the number of simultaneous incoming
connections that were allowed, but only for MS network
services, not TCP/IP ones.

-Peter
Jul 18 '05 #2
ChrisH schrieb:
Does anyone know of a way to determine whether the current computer
running a python script is a workstation or server?

I've used the following code, but it only tells me the version of
Windows.

(majVer,minVer,buildNum,platID,osInfo) = win32api.GetVersionEx()


Try asking in comp.os.ms-windows.programmer.win32, because it is
not a Python but a Win32 API issue.

Mit freundlichen Gruessen,

Peter Maas

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Hubert-Wienen-Str. 24
Tel +49-241-93878-0 Fax +49-241-93878-20 eMail pe********@mplusr.de
-------------------------------------------------------------------
Jul 18 '05 #3
ChrisH <se***@yahoo.com>:
Does anyone know of a way to determine whether the current computer
running a python script is a workstation or server?


Use _winreg to look into
HKLM\SYSTEM\CurrentControlSet\Control\ProductOptio ns
--
Thank you for observing all safety precautions
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gcash | last post by:
OK, I was writing code using WIN32ALL to do automation scripts for common things we do in IE a lot at work, since grunt-n-point gets very boring after a while. I snarfed the code from ...
0
by: Brent Turner | last post by:
Under python 2.2 I was able to create a COM object in an exe much of the same way that I could from py source... meaning that I was able to register the com server and create an instance using...
0
by: Mike Cannon | last post by:
I'm having a problem with the newer version of win32all and Python 2.3 with code that works fine on Python-2.2 (details below). Both machines are Windows XP. The code that breaks is derived...
0
by: The Jetman | last post by:
Folks: Have seen this minor problem w/ WIN32ALL-157 thru 159. I install a fresh copy of Python 2.3. Then proceed to install WIN32ALL. It always crashes the 1st time thru w/ the following dump...
0
by: Max Ischenko | last post by:
Hi, I'm writing a COM server in python which relies upon another python module whose location is in PYTHONPATH env. variable. The problem is that I got ImportError for that module -- seems...
2
by: Michel Claveau/Hamster | last post by:
Hi ! I seek how to define a COM-server in "mono-instance". Do you know if there are policies for that ? I sought much, but did not find anything. And i had difficult with english. Python is...
3
by: Werner Merkl | last post by:
Hi, Python is really great, for small to big programs. For my colleagues and some circumstances I sometimes need to "compile" a script using py2exe. Cause I use Windows, I like to use the...
0
by: PiErre | last post by:
Hi All, I am trying to install win32 extension 162 on python 2.2.3 on a virtual (vmware) machine with win2k server sp3 (but I tested that the same happens on either win2k sp2 or win2ksp3 on a...
4
by: Jack | last post by:
I searched around but could not find win32all source or binaries for earlier versions of Python. Don't ask me why but I have to use Python 1.5.2 in this project :) The sourceforget page only has...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.