Jump to content

Autoboot Recovery Cd


Recommended Posts

so xp is installed with the unattended cd. super cool.

but now I want to do a recovery cd with ghost, it should be a bootable self executing cd like those from the like of compag, hp etc.

ghost 7 allows me to create a bootable cd with the ghost image and ghost itself but you are still expected to operate ghost: what kind of batch should I use there to prompt the user for confirmation before dumping the image and then execute ghost?

-basically I don't know how to write a script, you see- :rolleyes:

I found an example somewhere but it assumed some version of freedos that I don't know so some file is missing and the script stops because the instruction "get" is not recognised.

how could I do it with MSDOS? or with anything else?

Can anyone point me to a tutorial or a guide?

I have found Bart's page (nu2u) but ...er.. it still seems a bit above my reach :)

any help is much much appreciated.

Link to comment
Share on other sites


you can use the -clone switch with ghost and it will ask you if you want to proceed. if you add -sure with it it will not.

i.e.

ghost -clone,mode=load,src=g:\diskimg.gho,dst=1

will load the diskimg.gho to the first disk in the machine and ask if you want to proceed.

ghost -clone,mode=load,src=g:\diskimg.gho,dst=1 -sure

will do the same without the prompt to continue.

you can also add -rb to automatically reboot after the image is loaded.

If you want more prompts before ghost loads use the CHOICE dos batch command.

@ECHO OFF

ECHO 1 - Exit to Dos Prompt

ECHO 2 - Run System Restore

CHOICE /C:12 /t:1,30 "Make your selection:"

IF errorlevel 2 goto restore

IF errorlevel 1 goto dos

:restore

ECHO.

ECHO  Running System Restore

ECHO.

CHOICE "ARE YOU SURE? "

IF ERRORLEVEL 2 GOTO dos

IF errorlevel 1 goto dorestore

PAUSE

CLS

EXIT

:dos

ECHO.

ECHO Exiting to DOS

EXIT

exit

:dorestore

ghost -clone,mode=load,src=g:\diskimg.gho,dst=1

exit

Link to comment
Share on other sites

WOW! CHOICE!

how easy things seem once someone comes and solves the problem for you!

Thanks a lot.

assuming the problem is solved, still, is there a way to get input from the user without just choosing from a list? say, 'if you want to proceed, type "sure, don't worry, I know what I am doing, and I am not going to regret it as soon as it's 5 seconds too late to do anything about it"

but anyway, CHOICE is perfect for what I needed, thank you. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...