Hi bryan,

On Friday, October 31, 2003, 1:34:17 PM, you wrote:

b> Anyway if the sdk has GET-ENV then I suppose it must have a function to
b> expand %SystemRoot%, perhaps by looking at the source you can find that?

REBOL/View 1.2.10.3.1 30-May-2003
Copyright 2000-2002 REBOL Technologies.  All rights reserved.
REBOL is a trademark of REBOL Technologies. WWW.REBOL.COM

>> get-env "OS"
== "Windows_NT"
>> get-env "SystemRoot"
== "C:\WINDOWS"

Is there a variable for the desktop path, too? Otherwise we have:

>> help get-reg
USAGE:
    GET-REG key-path id /hkcr /hkcu /hklm /hku /hkcc /hkdd

DESCRIPTION:
     Returns value of a registry key, else NONE. (HKCU is default)
     GET-REG is a native value.

ARGUMENTS:
     key-path -- (Type: string)
     id -- (Type: string)

REFINEMENTS:
     /hkcr
     /hkcu
     /hklm
     /hku
     /hkcc
     /hkdd
>> help set-reg
USAGE:
    SET-REG key-path id value /hkcr /hkcu /hklm /hku /hkcc /hkdd

DESCRIPTION:
     Sets registry key value. Returns value on success, else NONE. (HKCU is default)
     SET-REG is a native value.

ARGUMENTS:
     key-path -- (Type: string)
     id -- (Type: string)
     value -- (Type: any-string)

REFINEMENTS:
     /hkcr
     /hkcu
     /hklm
     /hku
     /hkcc
     /hkdd

Regards,
   Gabriele.
-- 
Gabriele Santilli <[EMAIL PROTECTED]>  --  REBOL Programmer
Amiga Group Italia sez. L'Aquila  ---   SOON: http://www.rebol.it/

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to