17-10-12, 05:43 PM
كاتب الموضوع : AhmedEssawy
لمعرفه نوع نظام التشغيل و رقم اصداره VB
C#
كود :
' Sample for the Environment.OSVersion property
Imports System
Class Sample
Public Shared Sub Main()
Console.WriteLine()
Console.WriteLine("OSVersion: {0}", Environment.OSVersion.ToString())
End Sub 'Main
End Class 'Sample
'
'This example produces the following results:
'
'OSVersion: Microsoft Windows NT 5.1.2600.0
'
كود :
// Sample for the Environment.OSVersion property
using System;
class Sample
{
public static void Main()
{
Console.WriteLine();
Console.WriteLine("OSVersion: {0}", Environment.OSVersion.ToString());
}
}
/*
This example produces the following results:
OSVersion: Microsoft Windows NT 5.1.2600.0
*/