I use this code to get the operating system temp directory, to extract attached file in my application. In every machine where your Notes apllication running, you need to know which is the drive and the dir to extract your temporary file. This code queries the system registry and retrieve the system temp directory on a Windows 2000 machine. I use this code in a computed field.
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
SysRoot:=@RegQueryValue ("HKEY_LOCAL_MACHINE";"SOFTWARE\Microsoft\Windows NT\CurrentVersion";"SystemRoot"); TmpDir:=@RightBack(@RegQueryValue ("HKEY_LOCAL_MACHINE"; "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; "TEMP");"%"); SysRoot+TmpDir