There is no access to system environment variables, except for the one you mention specifically : %TEMP%. You can get this variable with: system.path.findtemp(L); which puts the %TEMP% environment variable in the %L LabTalk string variable.
You can access system environment variables from Origin using the run -e command to create an INI file containing those variables and then accessing them with the INI object.
## Create INI file. %A depends on your OS ## %A=command.com; // If OS is Win9x (or WinMe? not sure) ## %A=cmd.exe; // if OS is NT4, Win2k or WinXP run -e %A /C echo [Variables]>%Ywin.ini; // Create file and section header sec -p 0.1; // Give the command time to complete before continuing run -e %A /C set >> %Ywin.ini; // Copy environment variables to file sec -p 0.1; // Pause again
## Variables can now be treated as INI keys ini.file$=%Ywin.ini; %A=ini.Variables.windir$; %A=; // get windows directory, for example