Manage Learn to apply best practices and optimize your operations.

Need the system temp directory?

Extract attached files in the system temp directory

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.

SysRoot:[email protected]
("HKEY_LOCAL_MACHINE";"SOFTWARE\Microsoft\Windows NT\CurrentVersion";"SystemRoot");
TmpDir:[email protected](@RegQueryValue
 "SYSTEM\CurrentControlSet\Control\Session Manager\Environment";

Dig Deeper on Lotus Notes Domino Administration Tools

  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/ community. These cheat ...