Computing.Net > Forums > Disk Operating System > DOS Script for use with Ghost 2k3

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

DOS Script for use with Ghost 2k3

Reply to Message Icon

Original Message
Name: blizzard
Date: February 17, 2005 at 00:58:20 Pacific
Subject: DOS Script for use with Ghost 2k3
OS: MS Windows XP Proffesiona
CPU/Ram: AMD Athlon 2500+ / 1024 M
Comment:

For my company i have to create a script with DOS.

I'll try to explain:
The script is for creating user friendly back-up menu in cooperation with Ghost 2003.
It has to be bootable from CD, then a menu needs to pop up from wich u can choose options, then, when selected create backup, it has to start automaticly with creating the backup so that the user doesn't have to do anything but wait.
Same goes for restoring a backup and restoring factory settings.

can someone plz help me with some source code or where i can find help on this subject.
I've been searching the internet now for over a week from 9 to 5 and finding only little itty bitty peaces of usefull stuffs.

An enemy is not to be underestimated.


Report Offensive Message For Removal


Response Number 1
Name: Mechanix2Go
Date: February 17, 2005 at 01:55:33 Pacific
Reply: (edit)

Dunno ghost,

But in general:

::** script for backup / restore
@echo off
CLS
echo Choose task
echo B. Backup
echo R. Restore
choice /cBR

if errorlevel 2 goto :restore
goto :backup

:restore
echo restore
:: your ghost restore command goes here
goto :eof

:backup
echo backup
:: your ghost backup command goes here

:eof
::** end

Not that the lines which echo backup and restore, respectively are just there for testing. So you'll know that the script "got where it was going".

Note also the where you put your ghost command, you DO NOT put the colons in front.

HTH


M2


Report Offensive Follow Up For Removal







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








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History




Data Recovery Software