473,396 Members | 2,147 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,396 software developers and data experts.

How to retrieve OS version

How would I retrieve the Windows version in a vb.net program (I want it
displayed in a label)?
Jul 21 '05 #1
4 1412
Hi,

Take a look at System.Environment.OSVersion

Hope this helps

Chris Taylor
"A.A. Fussy" <am****@austarnet.com.au> wrote in message
news:OT**************@TK2MSFTNGP11.phx.gbl...
How would I retrieve the Windows version in a vb.net program (I want it
displayed in a label)?

Jul 21 '05 #2
System.Environment.OSVersion

Bryan Martin
sp**@ahwayside.com
"A.A. Fussy" <am****@austarnet.com.au> wrote in message
news:OT**************@TK2MSFTNGP11.phx.gbl...
How would I retrieve the Windows version in a vb.net program (I want it
displayed in a label)?

Jul 21 '05 #3
Thanks for the code-System.Environment.OSVersion was just what I need.

"Chris Taylor" <ch*************@hotmail.com> wrote in message
news:ez**************@TK2MSFTNGP12.phx.gbl...
Hi,

Take a look at System.Environment.OSVersion

Hope this helps

Chris Taylor
"A.A. Fussy" <am****@austarnet.com.au> wrote in message
news:OT**************@TK2MSFTNGP11.phx.gbl...
How would I retrieve the Windows version in a vb.net program (I want it displayed in a label)?


Jul 21 '05 #4
Just a quick question. I am running WindowsXP PRO and using:
System.Environment.OSVersion.ToString
returns, WindowsNT 5.1.2600 , yet, Windows System Properties in Control
Panel Shows Windows XP PRO !!
Curious huh!
james

"Chris Taylor" <ch*************@hotmail.com> wrote in message
news:ez**************@TK2MSFTNGP12.phx.gbl...
Hi,

Take a look at System.Environment.OSVersion

Hope this helps

Chris Taylor
"A.A. Fussy" <am****@austarnet.com.au> wrote in message
news:OT**************@TK2MSFTNGP11.phx.gbl...
How would I retrieve the Windows version in a vb.net program (I want it displayed in a label)?


Jul 21 '05 #5

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

Similar topics

0
by: Miki | last post by:
Hi. I have a IIS server with php3 installed. I have SQL server database and data stored in unicode format (nvarchar fields). In header of my php I have the meta: <meta HTTP-EQUIV="content-type"...
0
by: Chung Leong | last post by:
My contribution to the comp.lang.php FAQ: ------------------------------------------------------------- Q: How do I retrieve a page from a web site? A: Pass a URL to file() or...
5
by: David Rasmussen | last post by:
Some sites seem to be session driven in the sense that if I visit the homepage and do a few clicks I can navigate anywhere I want, but if I paste the current location into a new browser window...
1
by: Eddy Fuchs | last post by:
Hi folks, I'm searching on this issue since a couple of days: How do I programmatically retrieve the version of an installed program? Is there a possibility to retrieve it via the local MSI...
5
by: Roy Gourgi | last post by:
Hi, I am used to working in Visual FoxPro and I would like to be able to create a database and store and retrieve information from it. What is the simplest way to do it and what should I be...
0
by: _jpg_ | last post by:
I would like to retrieve the ASP.NET version from within a ASP.NET webapp. This is the version which appears at the base of the standard error page beneath the stack trace etc. I can see how...
2
by: Steve Barnett | last post by:
I'm trying to put together a class that retrieves version information from my assembly and am having a problem. The code below happily retrieves the AssemblyTitle and AssemblyDescription but fails...
0
by: rmccullough | last post by:
The test tool I use produces xml files that I am parsing and inserting into a mysql database. I then have a set of php pages that report on the test results. I wrote a C# console application that...
5
by: =?Utf-8?B?QXhlbCBEYWhtZW4=?= | last post by:
Hi, I've created a class library assembly containing several string resource files, like: - TableColumns.resx - TableColumns.de.resx - General.resx - General.de.resx
4
by: Archanak | last post by:
Hi, I have table like this: select * from sampletest; | title ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.