Following Brians instructions, I just did it in windows vista. I'm using virtual PC and I chose Vista because it runs so much better than windows 7.
(They never released any windows 7 additions for virtual PC).
On a working Vista installation I used disk management to shrink the vista partition about 30MB, however I would consider shrinking it enough to store the images on it as well. On a FAT32 partition ghost will split the image files into 2 or 4GB pieces but that won't matter. Since my free space was so small I had to choose FAT.
So in disk management I made the free space a 30MB FAT primary partition.
Note that I have vista on one partition, I also install my Windows 7 installs on one partition without the SRP.
I end up with one virtual hard drive having 2 partitions. Vista on NTFS, DOS will be on the small FAT one.
I boot the drive with a Windows 98SE boot disk and do a: SYS C:
(I had already checked that it didn't see the NTFS partition and lettered the small FAT one as C)
Then I boot back into Vista, it boots right up since I have not changed the active partitions yet.
I go to the D drive (DOS) partition, delete drvspace.bin and make a folder called Dos so I can keep everything tidy.
In the Dos folder I add: Mouse.com, ghost.exe, choice.com, edit.com, mbr.exe (the dos version) and mbr32.exe (the windows version I renamed)
I also make and add 2 .bat files for that folder
BootDOS.bat
contains:
D:\DOS\mbr32.exe 0 1 /a /reboot
Boot7.bat
contains:
mbr 0 0 /a /reboot
Back in the root of the D drive I make an autoexec.bat file with this:
@echo off
PROMPT $P$G
path=C:\;C:\DOS
MOUSE.COM
CHOICE /C:123 /T:1,15 Press 1 for Restore, 2 for Win7, 3 for DOS
IF ERRORLEVEL 3 GOTO DOS
IF ERRORLEVEL 2 GOTO WIN7
IF ERRORLEVEL 1 GOTO RESTORE
:RESTORE
echo Restore System
REM Put your Ghost command here
REM boot7.bat
GOTO END
:DOS
echo Your in DOS
GOTO END
:WIN7
boot7.bat
:END
You see that I didn't put in the ghost.exe commands. I didn't actually test that part.
Right clicking on the BootDOS.bat file and selecting "run as administrator" reboots the system into DOS.
To make it a scheduled task you may not have to run the batch file, just put that one line command in.
When the system boots to DOS I get 3 choices:
1) will do the restore and it will default to this selection after 15 seconds.
2) Boots into Win7 (Vista) without doing anything
3) drops into DOS (use this to make or update the image, just type: ghost)
I added edit.com cause I had to make a few changes to get it to work. I actually added a bunch of other DOS tools but didn't end up needing any.
Thanks Brian :)
Dave