So, this way I need to already know that I'm looking for Windows NT? Is there a 
way to determine which Windows the user is on, if I don't know?

Thanks,
        Albert


On Jun 7, 2013, at 6:50 AM, Christian Schmitz <[email protected]> 
wrote:

> 
> On 06.06.2013, at 19:54, Albert Wallace <[email protected]> wrote:
> 
>> Christian,
>> 
>> Can you help? I need to find the version of Windows OS the user is using. 
>> I've used the following code from the examples on your website:
>> 
>> const path="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion"
> 
> If you look into registry with regedit, you'll notice that this path is 
> right. For my copy of Windows 7, it needs to have "Windows NT" inside. 
> Probably the path was for Windows 98 or so.
> 
> 
>  const path="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion"
>  dim r as new RegistryMBS
>  msgBox "This OS is: "+r.getStringValue(path, "ProductName", true)
> 
> 
> This works here.
> 
> 
> Greetings
> Christian
> 
> -- 
> MBS Xojo Developer Conference 2013
> 
> More details and registration here:
> http://www.monkeybreadsoftware.de/realbasic/events/
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> [email protected]
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to