Using Batch Files to Open and Close KeePass
Batch files can be used to open and close Keepass quickly.
The following example is the batch file entry I created to open Keepass and still be prompted to enter my master password:
START “” “C:\Program Files\KeePass Password Safe\KeePass.exe” C:\!Data\Database.kdb
The quotes are necessary for any path that contains spaces.
The following example is the batch entry file I created to open Keepass and NOT be prompted to enter the master password:
START “” “C:\Program Files\KeePass Password Safe\KeePass.exe” C:\!Data\Database.kdb -pw:1234
The following example is the batch file entry I created to open Keepass and NOT be prompted to enter the master password or key file (if key file is used):
START “” “C:\Program Files\KeePass Password Safe\KeePass.exe” C:\!Data\Database2.kdb -pw:1234 -keyfile:E:\kp.key
Finally, this batch file can be used to automatically close Keepass:
“C:\Program Files\KeePass Password Safe\KeePass.exe” –exit-all
The aforementioned paths will differ depending on your own install location and database and key file location.
This video explains these steps in further detail: VIDEO
Related posts:
Discussion Area - Leave a Comment
You must be logged in to post a comment.