+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Junior 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=

  2. #2
    Ultimate Member
    Join Date
    Oct 2001
    Posts
    10,819
    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"

  3. #3
    Junior Member
    Join Date
    Mar 2004
    Posts
    3

    ghost

    yes and thank you very much



  4. #4
    Ultimate Member
    Join Date
    Oct 2001
    Posts
    10,819
    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"

Quick Reply Quick Reply

If you are already a member, please login above.

What is 10 and 5 added together?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright 2014 All Enthusiast, Inc