Unable to use `blocks` and `chainstate` from external drive I want to use data directory from a different location (external SSD) on a Windows machine. When I save the path for it in bitcoin.conf it still uses old data directory. How can I use datadir in bitcoin.conf?
bitcoin.conf file:

datadir=F:\bitcoin-mainnet

debug.log logs:

2021-03-05T01:34:22Z Config file arg: datadir="F:\\bitcoin-mainnet"

It still uses old data directory which doesn't have data for a synced full node (mainnet):
This got resolved but not sure why specifying path in bitcoin.conf for datadir doesn't work.
Workaround:
Open &quot;%UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Bitcoin Core&quot;
Right click on &quot;Bitcoin Core (64-bit)&quot; and go to properties.
The target for this shortcut should be &quot;C:\Program Files\Bitcoin\bitcoin-qt.exe&quot; -datadir=F:\bitcoin-mainnet
OR
Open command prompt/powershell and run &quot;bitcoin-qt.exe&quot; with datadir path
C:\Program Files\Bitcoin&gt;bitcoin-qt.exe -datadir=&quot;F:\bitcoin-mainnet&quot;