Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.44 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. @echo off
  2. setlocal
  3. :: this is a comment
  4. REM this is a comment
  5.  
  6. set GPGU="My GPG User"
  7. for /f "tokens=1-4 delims=/ " %a in ('date /t') do set CURRDATE=%d-%b-%c
  8. set WALLET=c:\temp\wallet-%CURRDATE%
  9. set WALLETCRYPT=c:\temp\wallet-%CURRDATE%.crypt
  10.  
  11. c:\path\to\bitcoin.exe backupwallet %WALLET%
  12. c:\path\to\gnupg.exe -r %GPGU% --output %WALLETCRYPT% --encrypt %WALLET%
  13. copy %WALLETCRYPT% c:\path\to\dropbox
  14. rm %WALLET% %WALLETCRYPT%
  15. endlocal