Consultor Eletrônico



Kbase 20044: Using Environment Variables With WebSpeed/Progress Explorer
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   04/09/2008
Status: Verified

GOAL:

How to set and use environment variables with the Progress Explorer.

FACT(s) (Environment):

Progress 9.X
WebSpeed 3.x

FIX:

Take these steps before you set the variables:

1) The variable must be set at "system" level. For example, on Windows NT, this is set from Control Panel -> System -> Environment.

MYDIR=C:\mydir

2) In the Progress Explorer (or ubroker.properties file) add this environment variable to the PROPATH setting for an instance of a WebSpeed broker.

To add "MYDIR" to the default PROPATH:

@{WinChar Startup\PROPATH};@{WorkPath};${MYDIR}

The syntax of @{WorkPath} is a Registry key lookup. For example, this is translated as:

HKEY_LOCAL_MACHINE\Software\PSC\PROGRESS\9.1A\WinChar Startup\PROPATH
HKEY_LOCAL_MACHINE\Software\PSC\PROGRESS\9.1A\WorkPath

The syntax for specifying an environment variable requires the use the braces:
${ENVVAR}

The Windows NT-specific environment variable delimiters (%ENVVAR%) are not supported.

If you include an additional subdirectory after the environment variable, use the back-slash "\" (not the UNIX style forward-slash "/").

Some additional examples are:

@{WinChar Startup\PROPATH};@{WorkPath};${MYDIR}
@{WinChar
Startup\PROPATH};@{WorkPath};${MYDIR};${ANOTHERDIR}
@{WinChar Startup\PROPATH};@{WorkPath};${MYDIR}\subdir
@{WinCharStartup\PROPATH};@{WorkPath};${MYDIR};${THISDIR}\workdir