» 
batch file question
Hello,
I posted in the recovery cd thread a little bit down but I figured that it was maybe diggin up too old of a thread! Here is my question in a new thread for y'all.
I am using this code for the recovery cds taken from the thread mentioned previously.
autoexec.bat
@echo off
shsucdx /d:vide,t
ctmouse
doskey
set path=a:\;t:\
restore.bat
And now the restore.bat
@echo off
cls
echo ----------------------------------------------------------------------------
echo System Restore Utility
echo ----------------------------------------------------------------------------
echo.
if not exist hdimage.txt goto _notxt
type hdimage.txt
:_notxt
echo.
echo Copy disk image from CD-Rom to hard drive !!!
echo.
set get=
get c "Continue? [Y,N] : "
if "%get%" == "Y" goto _y
goto _end
:_y
echo.
echo.
echo This will erase all data currently on your hard disk !!!
echo.
echo Type "agree" to confirm this action.
echo.
set get=
get s "Type here: >"
if "%get%" == "agree" goto _ok
goto _end
:_ok
echo Loading...
rem without -rb switch!
ghost.exe -quiet -batch -sure -afile=NUL -clone,mode=load,src=t:\cdr00001.gho,dst=1
if errorlevel 1 goto _abort
echo.
echo Remove CD-Rom, and reboot system.
goto _end
:_abort
echo.
echo [Aborted...]
:_end
echo.
The problem I have is anytime there is the "set get=" I get an invalid command error. Am I supposed to use these in realtion with a specific boot files? I can't figure out why this is happening. I was just adding these files to a 98 boot disk and then moving those files to a cd. Am I doing this wrong? Any help would be great. I really need to get some kind of recovery system going.
Thanks in advance,
=w=
|