OperatingSystem Property

       

Returns the name of the current operating system, for example, “Windows” or “Windows NT”. Read-only String.

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