Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am in the works of attempting to do some automated Install Testing with some software. The process requires the automation of Reghosting the OS of the computer. I have a boot disk that reads a registry on the image drive and selects the correct OS to ghost. After ghosting the computer is automatically restarted. If the boot CD is not removed at this time the computer wants to reghost again...
Is there some way to rewrite Autoexec.bat on the CD to proceed with loading from the hardrive if a certain key is read from the image drive.
In the hope of automation I would not have to be around for several install tests and ghosts of the PC.
Thanks.

Rewriting the autoexec on CD presupposes ability to write to CD.
Could you write a small file to the root of the HD that the CD autoexec would look for and act accordingly?
Like, as the ghosting finishes:
type > c:\doneGHO
and in your autoexec:
if exist c:\doneGHO goto :somelabel
HTH
M2
If at first you don't succeed, you're about average.

I guess my question was a bit unclear. I am just in the works of rewriting the Autoexec.bat file now. I will not be trying to rewrite the file during automated testing.
Mechanix2Go idea is basically what I have implemented so far. What I really need is the following:
If Exists c:\doneGHO goto: SOMELABEL
What do I use for code in SOMELABEL to tell the BIOS to quit running from the CD and load the OS settings

If you mean to alter BIOS setting to change boot order, it's way out of my league.
M2
If at first you don't succeed, you're about average.

![]() |
panda platinum 7.0 not in...
|
Multiple Nics
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |