Subdomain Posts
None | 26 days ago
DOS | 54 days ago
DOS | 155 days ago
DOS | 635 days ago
DOS | 635 days ago
DOS | 635 days ago
Recent Posts
JavaScript | 10 sec ago
OCaml | 12 sec ago
None | 14 sec ago
JavaScript | 19 sec ago
None | 29 sec ago
JavaScript | 29 sec ago
JavaScript | 37 sec ago
JavaScript | 48 sec ago
None | 56 sec ago
JavaScript | 1 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Midna on the 23rd of Jun 2008 05:57:42 PM Download | Raw | Embed | Report
  1. REM Recovery program for NetHack.
  2. REM Please note this is incomplete as of yet.
  3. REM Also, "REM" is akin to "//" as a comment line. I'm not sure that "//" works with DOS.
  4.  
  5. @echo off
  6. cls
  7. echo Setting parameters...
  8.  
  9. :settvars
  10. set recfile=
  11. set prorecfile=
  12. set recconfirm=
  13. set /P recfile=Please enter the name of the character to be recovered:
  14.  
  15. :recovchk
  16. echo Searching for file(s) with given name....
  17. if EXIST user-%recfile%.0 (
  18. set prorecfile=user-%recfile%.0
  19. set /P recconfirm=Recover file %prorecfile%? [yn]
  20. if recconfirm==y (goto recovery)
  21. if recconfirm==Y (goto recovery)
  22.  
  23. :canclrec
  24. echo You have cancelled the recovery process. The program will now close.
  25.  
  26. :recovery
  27. echo Recovering %prorecfile%....
  28. recover %prorecfile%
  29.  
  30. :errorchk
  31.  
  32. :exitprog
  33. echo Program closing.
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: