How to Find the Name of the Operating System in Visual Basic ?

The "OSVersion" property of the "Environment" class is used to find out what the operating system is in the Visual Basic programming language.

Its usage is as follows..

Module ModuleTest Sub Main() Dim os As String = System.Environment.OSVersion.ToString() Console.WriteLine(os) Console.ReadLine() End Sub End Module


You May Interest

Visual Basic Adding Elements to List

Visual Basic Randomly Shuffle a List

Visual Basic Getting Last Character of String

Visual Basic How To Find The Average Of 10 Numbers Using A While ...

Visual Basic Reverse Array