45
22
I had Bitcoin-Qt on my computer with several bitcoins in my wallet, using Vista. Then my computer crashed. Finally I was able to get my computer fixed and download a new version of Bitcoin-Qt. Now I would like to import my original wallet.dat from the old client which was encrypted into an new version of Bitcoin-Qt. How do I do that?

1What do you mean, "localize your Bitcoin folder." ? – Jonathan David Finch – 2015-05-03T08:27:43.277
@JonathanDavidFinch I mean find the folder that contains your Bitcoin data files – Steven Roose – 2015-05-09T23:15:27.473
What happens if I backed up two separate wallets to two separate .dat files? – Simon – 2015-07-01T13:49:53.353
That's more difficult. What I would do is import one of them, generate a new address and copy it. Then back up the wallet.dat file and import the other one. From there send all coins to the copied address from the first wallet file. Finally just continue using the first wallet file. (Keep the second one for a few days for the case that something went wrong ;)) – Steven Roose – 2015-08-04T10:11:43.860
You can also use the command-line option
-wallet otherwallet.datto use an alternative wallet (in the data directory) without copying/moving over the existing one, this can be useful for juggling wallets with less risk. – wumpus – 2017-05-24T06:19:39.353For help on finding the data directory on other operating systems, see https://en.bitcoin.it/wiki/Data_directory (might make sense to add this to the answer)
– wumpus – 2017-05-24T06:23:19.437@StevenRoose dude! I just randomly found your post trying to restore a wallet! What a small world!
I'm the dude from Madrid that contacted you through the Dartcoin project, we got beers and a burguer remember? lol – DaniGuardiola – 2018-11-19T14:53:30.740
I can't believe an answer would start with "just delete that file" regardless of the "if". NEVER "just delete" a wallet.dat file. – user5652 – 2019-03-30T18:04:13.473