1.

Solve : Batch file to run GHOST to copy HD1 to HD2?

Answer»

I use GHOST to backup HD1 to an identical HD2, which TAKES approx. 5 min. When repeat copying HD1 to 2 GHOST scrambles the copy, unless one first formats /q the HD2. How can one eliminate the response of the formating program which requires first a Y/N, then Enter in regards to the label. I would like to run the formating unattended to the end.

I have another problem. The Batchfile in form of autoexec.bat file runs from a booting CD. I have two CD drives G: and H:. Unless I place the CD always in the first CD (G: drive) it can not find the Ghost.exe file but it LOOKS in an empty CD drive G:, with the booting CD in H:. Is there a way to find out for the batch program in which drive the CD is, without operator assistance?

If ANYBODY is interested: You can not have two active HD running in windows simultaneous. I use Free Fdisk.exe to deactivate HD2 and remove the MBR after copying and both HD live happily ever after in windows, 98, 2000 and XP.

Thanks for any advice!Format with no prompts: echo.|format x: /q

Finding the batch file:

if EXIST g:\ghost.exe goto G
h:\ghost.exe
goto end
:g
G:\ghost.exe
:end

As far as active disks, I have several systems that can boot from a drawer disk that's marked active. When I put that disk into one of my 2K/XP systems, it has no problem booting and accessing the drive.Thank you for the suggestin.
echo. |format X: /q will eliminate the format program prompts, it also prevents format from running.

if exist .... etc.
if it does not find the ghost program in drive, it will stop and query.

In any windows system if both master and slave HD are with VALID MBR and both active, will cause promplems. It may block the drivers, mark drivers with a yellow caution sign or it may damage the directories. All image disk copy programs warn you to either physically disconnect the copied HD, or to remove the activation on the copied HD. WIN98 is especially unforgiving. MSDOS does not care.Odd, the exact command:

echo.|format a:/q

Just formatted for me fine with no prompts. You can also put multiple lines in a file and feed it into any command, i.e.

format a:/q
Where response.ans contains:

y

As far as the program not finding the application, I assumed you'd expand on the error checking to cover all possible missing GHOST.EXE possbilities, I was just showing you the syntax.



Discussion

No Comment Found