Techlithium
Learning and discussing Microsoft technology from a beginner's perspective
Pages
Home
Thursday, July 25, 2013
Check whether the OS is a 64 bit or 32 bit environment in C#
The following will check if the Operating system is 64 bit or 32 bit
if
(System.
Environment
.Is64BitOperatingSystem)
{
MessageBox
.Show(
"64 bit machine"
);
}
else
{
MessageBox
.Show(
"32 bit machine"
);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment