OperatingSystem Property
Returns a String that represents the name of the current operating system, for example, “Windows” or “Windows NT”.
expression.OperatingSystem()
expression Required. An expression that returns a System object.
Example
The following example displays system information in a label on a form.
lblSystemInfo.Caption = System.OperatingSystem
This example prints the name of the current operating system in the Immediate window.
myOpSys = System.OperatingSystem