Computing.Net > Forums > Disk Operating System > Automating Ghost

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Automating Ghost

Reply to Message Icon

Name: falko
Date: September 25, 2002 at 02:06:28 Pacific
OS: dos
CPU/Ram: servers
Comment:

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?



Sponsored Link
Ads by Google

Response Number 1
Name: dtech10
Date: September 28, 2002 at 14:46:19 Pacific
Reply:

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 Quit

GHOST -CLONE , MODE=LOAD, SRC=Z:\%1.GHO, DST=1,SZE1=F,SZE2=F,SZE3=F -sure
:Quit
-----------------

is this what you want


0

Response Number 2
Name: falko
Date: October 4, 2002 at 05:40:06 Pacific
Reply:

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 variable

The 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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Automating Ghost

Customising a boot floppy to automate ghost image loading www.computing.net/answers/dos/customising-a-boot-floppy-to-automate-ghost-image-loading/5027.html

DOS CD Tray Close Proggy For Ghost www.computing.net/answers/dos/dos-cd-tray-close-proggy-for-ghost/14846.html

Ghost command for image file on cd www.computing.net/answers/dos/ghost-command-for-image-file-on-cd-/12270.html