Thanks goes to
eskodhifor this article.
Changing the default data directory is something that benefits those that are interested in keeping their Straks data contained in one directory or on a different drive.
Instead of having the Straks applications in one location and the blockdata and configuration in another (e.g., the default application data location being
%APPDATA%\Straks), you can instead choose to configure the QT wallet to use a different path as its data directory.
Changing the data directory does not mean moving the data directory.
If the goal is to migrate/move Straks application data to a new directory, create the new directory first, copy the contents of
%APPDATA%\Straks to the new directory, and then proceed with this guide.
Launching the shortcut without first populating the contents of the new data directory is the same as launching Straks for the first time: a new wallet file will be created, the default config will be used, and blockchain data will be downloaded starting from the Genesis Block.
The data directory option must be passed each time
straks-qt is launched. To facilitate this, we will create a shortcut to the wallet which will always launch the wallet with the data directory option.
In this example, the Straks applications are stored in
E:\crypto\straks\straks-184.108.40.206-win64. The application data will be stored in
E:\crypto\straks\data\. This folder must exist before executing the shortcut.
Create a shortcut to
Right-click the shortcut and click
-datadir option to the Target. The format for the option is as follows:
OK, the shortcut is now ready to be launched.