[REBOL] Re: USERPROFILE was RE: Re: creating a shortcut
From: bry::itnisk::com at: 31-Oct-2003 16:58
[
>> get-env "OS"
== "Windows_NT"
>> get-env "SystemRoot"
== "C:\WINDOWS"
I'm guessing you can't do get-env "USERPROFILE"
]
because if one uses the registry and goes to:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\She
ll Folders
USERPROFILE would evaluate to (on NT based) C:\Documents and Settings\
joined with content before next \ of whatever key other than fonts at
that location. Let's suppose at the Desktop key.
So if there was an OS-Object built up, one could use the path to get
things
OS-Object/Userprofile and it would be equivalent to an expanded
USERPROFILE
A minimal registry navigable as an object.
(hmm, This is probably not making much sense, perhaps I don't explain
things well in short emails.)