Progress dlc directory from registry

JvdB

Member
Hi Peggers,

Can somebody enlighten me how to read from the windows registry with progress version 8.3?

I want to lookup the dlc\bin directory from there and store it in a variable. so my tool can be used on different systems where progress might be installed on different drive then the one i work on.

Thnx already.

J.
 

M-HT

Member
Hi J,
I think you're looking for something like this:
DEFINE VARIABLE cDLC AS CHARACTER NO-UNDO.
GET-KEY-VALUE SECTION "Startup" KEY "DLC" VALUE cDLC.
IF cDLC = ? THEN GET-KEY-VALUE SECTION "WinChar Startup" KEY "DLC" VALUE cDLC.
IF SUBSTRING(cDLC, LENGTH(cDLC), 1) = "/" OR SUBSTRING(cDLC, LENGTH(cDLC), 1) = "\" THEN cDLC = cDLC + ".".
FILE-INFO:FILE-NAME = cDLC + "\bin\_mprshut.exe".
...

If you want to read other than progress related things from registry, you will have to use api functions.
 
Top