Midna
By: a guest | Jun 23rd, 2008 | Syntax:
DOS | Size: 0.83 KB | Hits: 417 | Expires: Never
REM Recovery program for NetHack.
REM Please note this is incomplete as of yet.
REM Also, "REM" is akin to "//" as a comment line. I'm not sure that "//" works with DOS.
cls
echo Setting parameters...
:settvars
set /P recfile=Please enter the name of the character to be recovered:
:recovchk
echo Searching
for file
(s
) with given name....
set prorecfile=user-
%recfile%.0
set /P recconfirm=Recover file
%prorecfile%?
[yn
]
if recconfirm==y
(goto recovery
)
if recconfirm==Y
(goto recovery
)
:canclrec
echo You have cancelled the recovery process. The program will now close.
:recovery
echo Recovering
%prorecfile%....
recover %prorecfile%
:errorchk
:exitprog