begey Posted October 15, 2003 Posted October 15, 2003 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- 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.
IcemanND Posted October 15, 2003 Posted October 15, 2003 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=1will 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 -surewill 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 OFFECHO 1 - Exit to Dos PromptECHO 2 - Run System RestoreCHOICE /C:12 /t:1,30 "Make your selection:"IF errorlevel 2 goto restoreIF errorlevel 1 goto dos:restoreECHO.ECHO Running System RestoreECHO.CHOICE "ARE YOU SURE? "IF ERRORLEVEL 2 GOTO dosIF errorlevel 1 goto dorestorePAUSECLSEXIT:dosECHO.ECHO Exiting to DOSEXITexit:dorestoreghost -clone,mode=load,src=g:\diskimg.gho,dst=1exit
begey Posted October 15, 2003 Author Posted October 15, 2003 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.
IcemanND Posted October 15, 2003 Posted October 15, 2003 Not without finding someones or creating a third party utility of some sort.At least not that I know of.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now