Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently May 18th, 2024, 11:30 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: SYSTEM_OPERATING_SYS - Windows 10?
PostPosted: July 17th, 2016, 8:21 pm 
Offline

Joined: May 25th, 2008, 4:57 pm
Posts: 355
Location: Ireland
Opus: Pro 9.75
OS: Windows 10
System: MacBook Pro (Intel 2020)
Hi All,

The system variable SYSTEM_OPERATING_SYS is not showing Windows 8.1 or Windows 10?

Is there a plan to update this in the next release?

Thanks, Luke

_________________
Opus Pro 9.75 on MacBookPro (2020 Intel) running Parallels 19 with Windows 10 (x64)


For this message lmc has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: SYSTEM_OPERATING_SYS - Windows 10?
PostPosted: July 17th, 2016, 10:29 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
This may help:


Code:
if (ReadRegistryKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "CurrentMajorVersionNumber")){
SYSTEM_OPERATING_SYS = "Windows 10";
} else {

switch(ReadRegistryKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "CurrentVersion"))
   {
   case '6.3':
   SYSTEM_OPERATING_SYS = "Windows 8.1";
   break;
   case '6.2':
   SYSTEM_OPERATING_SYS = "Windows 8";
   break;
   case '6.1':
   SYSTEM_OPERATING_SYS = "Windows 7";
   break;
   case '6.0':
   SYSTEM_OPERATING_SYS = "Windows Vista";
   break;
   case '5.1':
   SYSTEM_OPERATING_SYS = "Windows XP";
   break;
   default:
   SYSTEM_OPERATING_SYS = "Unknown";
   }
}


</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


For this message mackavi has been thanked by : lmc


Top
 Profile Visit website  
 
 Post subject: Re: SYSTEM_OPERATING_SYS - Windows 10?
PostPosted: July 18th, 2016, 10:25 pm 
Offline

Joined: May 25th, 2008, 4:57 pm
Posts: 355
Location: Ireland
Opus: Pro 9.75
OS: Windows 10
System: MacBook Pro (Intel 2020)
Great thanks Mack.

_________________
Opus Pro 9.75 on MacBookPro (2020 Intel) running Parallels 19 with Windows 10 (x64)


For this message lmc has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group