Okay, I have sorted this out. It took some playing around, but here we go:
To summarize, we want to have an automated way to capture partitions 1 and 2 on a system and store them in an image in partition 3 on that same hard disk. We also want to be able to restore that image on partition 3 to partitions 1 and 2.
To do this, I created two Ghost scripts for capture and restore. In this case, I'll be doing a "Factory" image (and image we make in our production facility - in the field they will also create an "installed" image, but it's the same idea):
The Capture script: FCAPTURE.TXT
--clone,MODE=pcreate,SRC=1:1:2,DST=1:3\factory\FACTORY.GHO -rb
The Restore scipt: FRESTORE.TXT
-clone,mode=prestore,src=1:3\FACTORY\FACTORY.GHO:1,dst=1:1 -sure
-clone,mode=prestore,src=1:3\FACTORY\FACTORY.GHO:2,dst=1:2 -sure -rb
Once I had these two files in place, I used the Ghost boot wizard to create two boot packages using the PC DOS boot & the virtual boot parition. For the "Capture" package, I added my script file FCAPTURE.TXT (I leave it in the default location, which will be the root of the v-parition boot package) and edited the autobat to have ghost call that script: Ghost -script=\FCAPTURE.TXT. NOTE that I specify \FCAPTURE.TXT - meaning that Ghost will look to the root of the V-partition, which is where the script file will reside.
Similarly, for the Restore package, I added the FRESTORE.TXT file and edited the autobat to have ghost call THAT script: Ghost -script=\FRESTORE.TXT
NOTE: Path issues can screw you up here - - When you create the virtual parition, it will ask you where you want it - I put mine on the parition that will store my images, under \FACTORY\CAPTURE. This is NOT where the image will be stored, but where the V-Partition files will reside.
When you run the Vpartition shortcut residing in \FACTORY\CAPTURE, it will shut down and reboot your system, boot into the V-partition PC does environment, launch ghost and run the Factory Capture script, storing the image file FACTORY in the 3rd parition of the first hard drive under \FACTORY
When you run the Vpartition shortcut residing in \FACTORY\RESTORE, it will it will shut down and reboot your system, boot into the V-partition PC does environment, launch ghost and run the Factory Restore script, restoring the image found under paritiion 3, \FACTORY to paritions 1 and 2.
Last thing: Windows 7 does *not* like the Vpartition shortcut - We had to run VPARTITION from a command window directly (which is what our eventual UI was going to do anyway) but don't get wigged out if your shortcut fails.
Hope this helps!!!
* A few more notes...
The Ghost boot wizard mostly just creates a ZIP file that the V-Partition exe unpacks when it boots. You can manually edit the script file and autoexec.bat inside the ZIP - - you can even rename the ZIP file, so long as you specify that as a command line option when running Vparition (the default value is Vpartition.ZIP