vb.net - Detect Operating System -


i know how detect if persons operating system windows 7, i'm bit new , have no idea how this. please let me know if possible , code it.

see environment.osversion property on msdn. static property returns operatingsystem object, has version property , can check major , minor version numbers see if 6.1 (windows 7 version 6.1).

    dim osver version = environment.osversion.version      if osver.major = 6 , osver.minor = 1         console.writeline("win7!!")     end if 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -