Topic: Relative path db

Hi all, i would like to move the sqlite database file to a folder called db in the application root.

My problem is that I can't set the path of the new folder in the settings.

If I write the absolute path, considering that the application resides on a USB stick, it happens that if the drive letter changes the database is not found and I have to select it again from the settings.

I would like to be able to put the relative path in the settings. What syntax should I use? Thank you.

Re: Relative path db

You can't do that.

brian

Re: Relative path db

I'm just thinking aloud here.

I wonder if it could be possible if you included a PowerShell or perhaps a BAT script that actually started your MVD program.

The script could either retrieve the current drive path and then insert it into the VDB settings.ini or much easier force the PC to see the inserted drive as a fixed letter.


That does of course have problems because you could never be sure what drive letters your users were using. I for example have Z,Y,H,I, and F as partitions on my drives.

On a clear disk you can seek forever