Blockchain Symlinks Batch


SUBMITTED BY: Guest

DATE: April 10, 2014, 3:03 p.m.

FORMAT: Bash

SIZE: 827 Bytes

HITS: 896

  1. @echo off
  2. setlocal enableextensions enabledelayedexpansion
  3. set /P cryptocurrency="What cryptocurrency? "
  4. set /P currentblock="Start block: "
  5. set /P endblock="End block: "
  6. cd %appdata%\%cryptocurrency%\blocks\
  7. cls
  8. :while1
  9. if %currentblock% leq %endblock% (
  10. if %currentblock% leq 9 (
  11. mklink blk0000%currentblock%.dat D:\Cryptocoins\%cryptocurrency%\blk0000%currentblock%.dat
  12. ) else (
  13. if %currentblock% leq 99 (
  14. mklink blk000%currentblock%.dat D:\Cryptocoins\%cryptocurrency%\blk000%currentblock%.dat
  15. ) else (
  16. if %currentblock% leq 999 (
  17. mklink blk00%currentblock%.dat D:\Cryptocoins\%cryptocurrency%\blk00%currentblock%.dat
  18. )
  19. )
  20. )
  21. set /a "currentblock += 1"
  22. goto :while1
  23. )
  24. endlocal
  25. pause

comments powered by Disqus