OpenNTF.org - Open Notes Picture Database
Open Notes Picture DatabaseOpenDocument[/Projects/pmt.nsf/ProjectView?ReadForm&Query=]

My Links (Not logged in)
User Name Password
Hosted by Prominic.NET

   Project: Open Notes Picture Database (Managed by Christian Brandlehner)
Actions:

Hide details for The bugThe bug
Bug ID: NOSS-5VCV3G
Description
Submitted by:Christian Brandlehner
Project Master Chef:Christian Brandlehner
Bug type:Functionality
Brief Description:temp parameter not working if path contains variables
Severity:Low
Version0.9a
Status:

Details
Version 0.9a expects the registry value for the temp path to be like "c: \temp", if the value is instead "%SystemRoot%\TEMP" the import agent will fail.


Action taken
Status:Fixed
Implemented in Release:0.9b
Fix Details:fixed by using the following formula:
_tmp := @RegQueryValue("HKEY_LOCAL_MACHINE"; "SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment"; "TEMP");
_systemroot := @RegQueryValue("HKEY_LOCAL_MACHINE"; "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion"; "SystemRoot");
@If(@Contains(_tmp;"%SystemRoot%");@ReplaceSubstring(_tmp;"%SystemRoot%";_systemroot);_tmp)

Modification history
Entered 19-Jan-2004 17:04 by Christian Brandlehner. Last Modified <none> by <none>.