Yep, you've to navigate directory to the folder where the wallet is installed before running the command above.
-snip-
cd C:\Users\YourUserName\Appdata\Roaming\Bitcoin
Correct command but not the directory, it should be cd to the directory where bitcoin-qt is located, not the data directory.
In Windows, it's usually in
C:\Program Files\Bitcoin but may be different depending on where you installed Bitcoin.
Another way to launch it without "
cd" is to provide the absolute path to bitcoin-qt like:
"C:\Program Files\Bitcoin\bitcoin-qt.exe" -reindexAnother option is to create a shortcut of bitcoin-qt and in its 'Properties', edit the "
Target" with the command line option that you want to use.
e.g. (
the shortcut's "Target"):
"C:\Program Files\Bitcoin\bitcoin-qt.exe" -reindexClick 'Ok', Then use that shortcut to start Bitcoin Core with -reindex.