Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I need to customise my boot disk sothat there is minimum user intervention as possible. I have got as far as automating my config.sys and autoexec.bat sothat the person taking a backup or restoring can choose the dos network drivers and soforth. All I need now is find a way to customise ghost sothat the person just has to type in restore and the image backup will restore to the machine. For example
When the destination drive is larger than the source drive:
GHOST -CLONE , MODE=LOAD, SRC=Z:\XXX.GHO, DST=1,SZE1=F,SZE2=F,SZE3=F -sure
Thing thing is how can i write a little .bat file to load the Z:\XXX.GHO without needing to type out the whole command. i was thinking of a dos .bat file asking what machine (image) do you want to restore. User types in machine.gho and off it goes restoring
can anybody help?

Hi
If the user has to already know the name of the restore file, just create a batch file and use a parameter after eg:
Restore XXX this parameter is %1 to the batch file
---------------
rem Ghost.bat
if (%1)==() echo Usage Restore FileName
if (%1)==() goto QuitGHOST -CLONE , MODE=LOAD, SRC=Z:\%1.GHO, DST=1,SZE1=F,SZE2=F,SZE3=F -sure
:Quit
-----------------is this what you want

yes thanks. this is sort of what i am looking for.
I was thinking maybe it could say after executing the batch Restore.bat:
@echo off
echo Please type in Server Name:
(record variableThe variable then gets recorded and used
in the ghost command
GHOST -CLONE , MODE=LOAD, SRC=Z:\variablename.GHO, DST=1,SZE1=F,SZE2=F,SZE3=F -sure

![]() |
![]() |
![]() |

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