Symantec Ghost with PXE Automation

This simplified script offers the purpose of starting PXE, TFTP, and Ghost in an appropriate order. When the Ghost imaging is complete, the services for PXE and TFTP will also terminate. This is useful in an environment where some workstations are set to PXE boot. This will prevent unanticipated access to the PXE server. Also, a one click method to start three services and stop them when complete.

Run ("C:\Program Files\3Com\Boot Services\3CPXE.EXE", "", @SW_MINIMIZE)
Run ("C:\Program Files\3Com\Boot Services\3CTFTP.EXE", "", @SW_MINIMIZE)
Run ("D:\Images\Ghost\ghostsrv.exe \\servername\images$\ghost\images\myimage.GHO IMAGE1 -n1 -disk1 -ls -f\\servername\temp$\IMAGE1.log -c")
ProcessWaitClose ("ghostsrv.exe")
ProcessClose ("3CPXE.EXE")
ProcessClose ("3CTFTP.EXE")