Thread: batch file question
-
March 5th, 2004, 11:44 AM #1Junior Member
- Join Date
- Mar 2004
- Posts
- 3
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=
-
March 5th, 2004, 12:26 PM #2Ultimate Member
- Join Date
- Oct 2001
- Posts
- 10,821
I am on the way out the door right now..but I will try to come back and look at this again. If I forget, PM me. We can easily work this out.
Are you using ghost for the image part of it?
JP"Even a fool is thought to be wise if he is silent"
-
March 5th, 2004, 01:01 PM #3Junior Member
- Join Date
- Mar 2004
- Posts
- 3
ghost
yes and thank you very much
-
March 6th, 2004, 12:33 AM #4Ultimate Member
- Join Date
- Oct 2001
- Posts
- 10,821
uhh, I dont think you can just add these to a regular win98 boot floppy. Because it was made to work with a custom made boot floppy that I made with different cdrom drivers, no menu, etc etc.
You have a private message.
pm me back, JP"Even a fool is thought to be wise if he is silent"
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)



LinkBack URL
About LinkBacks



Reply With Quote

Hello MMA Fan's..WelCome to Watch UFC 160 Live Stream: Antonio Silva vs Cain Velasquez Live Streaming (for UFC heavyweight title) Exciting & biggest MMA match on your Pc from MGM Grand Garden Arena...
~!@!Hello Guys Enjoy UFC 160 Live...