Home > Visual Basic > Detect Version Of Windows

Detect Version Of Windows

October 28th, 2009

I need a simple .exe file created + source files in VB that will run on windows 32-bit, and windows 64-bit to detect what version of windows is running. The program will be executed at the command line, and will output a result into a file as ascii data.

For example, a person on windows ME runs the application. It executes, creates version.dat which contains “WINME”, then exits. Inside the source file I should be able to change what text it outputs. If the file exists, it should overwrite it.

Windows 95 = WIN95
Windows 98 = WIN98
Windows 2000 = WIN2K
Windows ME = WINME
Windows XP = WINXP
Windows Vista = WINVI
Windows 7 = WIN7

…and so on. Very simple project, I just don’t know VB!


Detect Version Of Windows

Comments are closed.
Bear