Kbase 16049: How to get the INI file name used at runtime
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
How to get the INI file name used at runtime
INTRODUCTION:
=============
This knowledgebase entry describes a way to determine what INI file
is being used at runtime.
WHY YOU NEED TO KNOW THIS:
===========================
You may need to know this if your program needs to do special
processing depending on what INI file was loaded at startup.
PROCEDURAL APPROACH:
====================
1) Modify your startup procedure so that it includes the -param
startup parameter. This parameter must duplicate the value
that is specified in the -ininame startup parameter.
Example:
pro sports -1 -ininame c:\xxx\my.ini -param c:\xxx\my.ini
2) In your program, you can use the SESSION:PARAMETER attribute to
see what INI file name was used to startup the session. Given
the example shown above, the SESSION:PARAMETER attribute will
contain the string "c:\xxx\my.ini".
Please note that this is the only way to determine what non-default
INI file (if any) was used to startup Progress. There is no HLC or
DLL call that you can make within Progress to get this information.
Progress Software Technical Support Note # 16049