Hi Oldes,

system/version can tell you.

It looks like the platform is encoded into the
version tuple at positions four and (usually) five.
MS Windows is 3.1

If you go to
http://www.rebol.com/view-platforms.html
you can see:

        Microsoft Windows (All) iX86 1.2.1.3.1 view-pro031.zip

So a test for windows platform could be:

        "" = find/last/tail form system/version ".3.1"

or
        all [system/version/4 = 3 system/version/5 = 1]

(but you have to be careful that there is a five element
in the tuple in that case.)

Anton

> Hello rebol-list,
> 
>   does anybody has/know some script for detecting type of operating
>   system rebol is running in?
>          I would like to update my %win-maker.r file that makes window
>   without standard window borders but I've found that it's not working
>   on some other platforms (for sure at MacOS) so I would like to have
>   possibility to make it available only on windows (at least until I
>   will find way how to fix it for all platforms - but it's quite
>   dificult when one can see the other OS once per month for a few
>   minutes)
> 
>   thanks Oldes

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to