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:=@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
This was first published in November 2001

Dig deeper on Lotus Notes Domino Administration Tools

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close