Menu

portable usb device and changing drive letter

2010-04-26
2014-09-01
  • Jan Bessels

    Jan Bessels - 2010-04-26

    I did RTFM and looked in the forum but can't find what I need. Here is my question:

    I'm using keepass 2.10 and I've put my kdbx file on a usb stick/drive. I'm using it on multiple computers. Problem is that the drive letter for a drive changes most of the time. I know I can force windows xp sp3 to use a specific drive letter for it but thats not that convenient using it on multiple computers.

    Is it possible to setup keepass so that it doesn't use a fixed drive letter like D:\Keepass\mypasswords.kdbx but instead uses the device serial nummer (or some other unique propertie of a usb stick) like %SERIAL=2877-3CA3%\Keepass\mypasswords.kdbx. This is for example possible in syncback Se.

    Any help would be greatly appreciated.

     
  • Paul

    Paul - 2010-04-26

    Create a batch file (KP.cmd) and add this command:
    %~dp0Keepass\mypasswords.kdbx %~dp0Keepass\mypasswords.kdbx
    Note: there are no back slashes at the start of the command, they are automatically added by "%~dp0". "0" is zero.

    cheers, Paul

     
  • Alessandro_DS

    Alessandro_DS - 2014-09-01

    Sorry: edited for error.

     

    Last edit: Alessandro_DS 2014-09-01

Log in to post a comment.

MongoDB Logo MongoDB