473,624 Members | 2,685 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting the OS version`

Is there any easy way of getting the os version in vb.net. I used to use
an api call in vb6 but thought that there might be an easier way.

Thanks
Nov 21 '05 #1
4 1128
Hi,

Environment.osv ersion

http://msdn.microsoft.com/library/de...rsiontopic.asp

Ken
------------------------

"Jack Russell" wrote:
Is there any easy way of getting the os version in vb.net. I used to use
an api call in vb6 but thought that there might be an easier way.

Thanks

Nov 21 '05 #2
Jack Russell wrote:
Is there any easy way of getting the os version in vb.net. I used to use
an api call in vb6 but thought that there might be an easier way.

Thanks

Talking to myself, I found it environment.ope ratingsystem, and it is as
bad as the API call!
Nov 21 '05 #3
"Jack Russell" <ja***@norubbis h.tpg.com.au> schrieb:
Is there any easy way of getting the os version in vb.net. I used to use
an api call in vb6 but thought that there might be an easier way.

Talking to myself, I found it environment.ope ratingsystem, and it is as
bad as the API call!


I assume you are referring to 'Environment.OS Version'. Why do you think
that it is as bad as the API call?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
View this article:

http://support.microsoft.com/default...b;en-us;304289

Although, if you need to fin out if its XP Home/Professional or the version
of the OS is Data Centre then you need to use a different method

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #5

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

Similar topics

2
2162
by: Patrik Carlsson | last post by:
I have a problem using Xerces with a template for a generic page-header getting a sub-tree as argument. The same stylesheet is working flawlessly in IE and Mozilla, though it would be nice to have a result-file to work with too. Here is an example (xerces only get a collapsed string through), any suggestions or current bug-reports are welcome. / Patrik
2
6905
by: Eyal | last post by:
Hey, I would appriciate if anyone can help on this one: I have a java object/inteface having a method with a boolean parameter. As I'm trying to call this method from a javascript it fails on a type mismatch. It is positively because of the boolean(java primitive)parameter. It goes fine if I change this parameter to int or String. This inteface has a lot more methods which works fine, it is just the
0
1412
by: shawnk | last post by:
I downloaded and installed the new SQL Server Express Manager tool but it had problems with the latest 'released version of .NET (version I have is 2.0.40607). I looked on MSDN websites but did not find a really great page (URL) for getting the most recent version of the .NET framework 2 beta online. The MS tool (SQL Server Express Manager) needs version 2.0.40903. How can I find what version is available for download when I want to...
2
2102
by: nfr | last post by:
I keep getting the following warning in my compile: Warning: The dependency 'WBWebServices, Version=1.0.1289.13943, Culture=neutral' in project 'WBWin' cannot be copied to the run directory because it would overwrite the reference 'WBWebServices, Version=1.0.1289.15088, Culture=neutral'. If I delete and readd the reference, it compiles fine but when I come leave and return to Visual Studio.NET, the error pops up again when I recompile...
2
56925
by: kris | last post by:
Hello, We're porting some old code to our new C# .NET project and are having trouble getting the file version of a non-.NET EXE file using C# .NET code. In our old code, we were using the FileSystemObject (specifically the GetFileVersion method) to easily get the version of the EXE file. In .NET however, we haven't been able to figure out an equivalent method to easily get the file version of a non-.NET file.
2
2000
by: William Gower | last post by:
I am trying to display a page that has a data grid on it. I get this message Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Access is denied: 'DataAccessLayer'. Source Error:
2
1644
by: JIM.H. | last post by:
Hello, I know the user I give in the connection string is the database admin, why am I getting the following message? Server Error in '/' Application -------------------------------------------------------------------------------- Access is denied. Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the
0
1388
by: MSK | last post by:
Dear all, Continued to my earlier mail regarding "Breaking points are not getting hit in ASP.NET " , I got some idea from net. Can anyone give me more idea on this? Just to remind the issue: 1. I got the following error while executing a newly created a web application (just sample app)
2
3811
by: Dylan Parry | last post by:
Hi, Is there a way of getting the date that an assembly was last compiled? I am trying to help myself to remember what version of a particular assembly my Web applications are using, so I've taken to having it output the version number at the bottom of the page using: Assembly a = Assembly.GetExecutingAssembly(); AssemblyName an = a.GetName(); info.InnerHtml = "Powered by " + Info.Name + " v" + an.Version;
8
6283
by: lawrence k | last post by:
I've installed Apache 1.3.36 on my Redhat EL 3 machine. Now I'm trying to install PHP 5.1.4. I can not get the ./configure command to work. I keep getting this error: configure: error: Invalid Apache directory - unable to find httpd.h under /usr/local/apache/include So then I run this command: find / -name httpd.h
0
8251
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8182
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8688
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8494
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7178
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2614
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1800
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.