To allow KeePass to work we need a conenction with the KeePass application.

We can add multiple Keepass database files



'Initialize only once to attach the KeePass program

KPEXEPATH = [D:\Program Files\KeePass\KeePass.exe]


'Set initial values for automatic opening and closing of KeePass database files

KPAUTOOPENDATABASE = True

KPCLOSEDATABASESAFTERSCRIPT = True


'Now add a Keepass database file that we can use.

'We can use multiple files and acces them via the name variable

'The secret password is 'TestPassword'. 

'If we would leave it empty, the program will ask for it once.

KPAddDB("TestKDB", "#BASEPATH#\Data\KeePass\KeePassDB.kdbx", "TestPassword")


'Now test connection by opening the database

output = KPOpenDB("TestKDB")





To cleanup everything, we can use the following script, although it is not required to run it. IT-Tool will do the job when finished.



'To clean everything the following functions can be used

'Note that they are normally not needed to run

Output = ""


'First close all databases 

KPCloseDBs()


'Individual connection to database files can be removed

KPRemoveDB("TestKDB")


'But is is just as easy to remove connection to all database files:

KPClearDBs()


'Now remove the connection with the KeePass executable

KPEXEPATH = ""

Created with the Personal Edition of HelpNDoc: Full-featured Kindle eBooks generator