If you're still using Windows7, open command prompt to
Bitcoin\daemon where bitcoin-wallet.exe is located (
change the directory if you're not using the default).
cd C:\Program Files\Bitcoin\daemon
For the default wallet 'wallet.dat', this command should work:
bitcoin-wallet -datadir="D:\Bitcoin" salvage
For other wallets, use NotATether's command.
Note: It will not return with a response (
aside from errors), you can check the data directory and a backup of the wallet will be created upon using the command.
Does the bitcoin-wallet offer any more tools?
Use: