PDA

View Full Version : Command line for Symantec Ghost to load available Ghost image in BAT file



atkhan41
12-22-2010, 02:53 PM
I working on project to make recovery DVDs using Ghost Image. And i want to use the command line for Multiple ghost images (which ever is available on DVD); example, if i am imaging for D600 and the image name is D600.GHO and on the other hand if i want imaging for nc6000 and the image name is nc6000.GHO, i don't want to change the name of the file every time in bat file and burn the DVD everytime. one command line which will work as whatever Ghost image is available it will load and start imagingon Hard disk.

The command line i am using in BAT file is:
R:\ghost -clone,mode=load,src=R:\NC6000.GHO,dst=1, -afile=C:\ghststat.txt -sure -FX

If someone could help me to use right syntax to use multiple images.

Regards,

Asan

Constance
12-26-2010, 03:05 PM
Hello there ^^

Which command interpreter are you going to use ?

If it's compatible with Windows XP's cmd, you may try that :

FOR /F "usebackq" %%a in (`dir /b R:\*.gho`) DO R:\ghost -clone,mode=load,src=R:\%%a,dst=1, -afile=C:\ghststat.txt -sure -FX

Assuming there is only one .GHO file in your R:\ directory.
Also, I don't own ghost so I can't check much about it.