Case Status
Log In


Setting the path to an ini fil…
  • RSS Feed

Last modified on 7/6/2018 2:26 PM by User.


Setting the path to an ini file

Instead of having a fixed path to an ini file in a merge code, we can use different paths based on an entry in the users config.ini file or in the registry.

Let's assume:

  • the ini file we want is called MyIniFile.ini;
  • the ini file is in \\ServerA\Kappris\Settings
  • the key we are looking up is Department
  • the key is in section [<Username>]

Here are the steps to do it.

  1. Edit C:\Program Files (x86)\Kutana\Kappris\config.ini
  2. Add a new section: IniFiles
  3. Add a new key in this section: PrintServerPath=\\ServerA\Kappris\Settings
  4. Save config.ini
  5. Run KPMgr
  6. Create a new merge code PrintServerPath and set it up as follows:

7. Create another new merge code Department and set it up as follows:

8. That's it. You don't have to use Kappris's config.ini if you don't want to. The ini file location could be picked up from a registry entry populated by group policy. The world is your oyster.