How to check whether the current operating system is a 64-bit operating system in VB.NET

1 Answer

0 votes
Imports System

Public Class Program
    Public Shared Sub Main()
        Dim str As String = If (Environment.Is64BitOperatingSystem, "yes", "no")
			
        Console.WriteLine(str)
    End Sub
End Class

 
 
 
 
' run:
'
' yes
'

 



answered Nov 18, 2023 by avibootz
...