Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

USERPROFILE was RE: Re: creating a shortcut

 [1/4] from: bry:itnisk at: 31-Oct-2003 16:00


>> get-env "OS"
== "Windows_NT"
>> get-env "SystemRoot"
== "C:\WINDOWS" I'm guessing you can't do get-env "USERPROFILE" Or can you?

 [2/4] 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.)

 [3/4] from: g:santilli:tiscalinet:it at: 31-Oct-2003 17:31


Hi bryan, On Friday, October 31, 2003, 4:00:45 PM, you wrote: b> I'm guessing you can't do get-env "USERPROFILE"
>> get-env "USERPROFILE"
== "C:\Documents and Settings\Gabriele" BTW, you can download View 1.2.10 and try it out yourself. ;-) Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/

 [4/4] from: greggirwin:mindspring at: 31-Oct-2003 9:47


Hi Bryan, b> I'm guessing you can't do get-env "USERPROFILE" b> Or can you? Yes, you can. View 1.2.10 has it as well as the SDK. -- Gregg