I have the following problem:
In my program, a data backup of the database is to be done on a USB stick. For this I can select the backup path in a memo and save it in the database. At the program end, the memory path is read from the DB and the DB is saved to the USB memory stick.
This works good first.
If, however, another external USB device with a smaller drive letter is removed from the PC, the drive letter of the USB flash drives changes and the backup does not work because the old drive letter is still stored in the backup path in the DB.
What are the possibilities for solving this problem?
In my program, a data backup of the database is to be done on a USB stick. For this I can select the backup path in a memo and save it in the database. At the program end, the memory path is read from the DB and the DB is saved to the USB memory stick.
This works good first.
If, however, another external USB device with a smaller drive letter is removed from the PC, the drive letter of the USB flash drives changes and the backup does not work because the old drive letter is still stored in the backup path in the DB.
What are the possibilities for solving this problem?