Computing.Net > Forums > Programming > Batchfile for: Ghost 8.0 --> Ext.HD

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.

Batchfile for: Ghost 8.0 --> Ext.HD

Reply to Message Icon

Name: DOS n00b
Date: May 10, 2005 at 01:29:14 Pacific
OS: Win. XP Pro
CPU/Ram: AMD Athlon 64 4000+
Comment:

Hello, i want to write a back-up to an external hard disk. for this i use the following DOS codes in a batch file.
__________________________________________
@echo off
CLS

%RAMD%:\ghost\ghost.exe -forceusb -clone,mode=pdump,src=1:1,dst=2:1 CToexHD.gho -Z9 -sure -cns (**These lines are all one sentance**)

CALL Quit.bat

exit
__________________________________________

%RAMD% is my virtual drive. I have DOS 7.

The procedure doesn't work, what am i doing wrong? Anyone got an idea?

An enemy is not to be underestimated.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: May 10, 2005 at 02:29:59 Pacific
Reply:

Hi,

I don't know what quit.bat does, but it seems like your main line is the one starting with %RAMD%

I guess RAMD is a ramdisk; don't know why you're using a ramdisk nor why the ghost.exe is in a subdirectory on the ramdisk.

BUT, without knowing what "doesn't work" I guess the problem is with the syntax of the ghost command.

You might put a PAUSE after that line and watch to see if there is any error message.


M2


If at first you don't succeed, you're about average.


0

Response Number 2
Name: DOS n00b
Date: May 10, 2005 at 02:44:34 Pacific
Reply:

Quit.bat gives a msg and reboots the PC,
yes %RAMD% is a ramdisk and i put the ghost.exe in the root of the ramdisk now.

The problem is that ghost doens't back-up to the external hard disk. I'm nearly 100% sure that the problem lies with the "dst" switch. i've tested the rest so without problems.
i've checked the symantec site how to do this but it doesn't say anything about writing to an external disk.

any idea's how the Ghost command syntax should be?

An enemy is not to be underestimated.


0

Response Number 3
Name: Mechanix2Go
Date: May 10, 2005 at 03:05:22 Pacific
Reply:

No idea about ghost syntax; never used it.

try:

ghost /?

most well written programs have built in help.

What does Symantec say about "dst"?

M2


If at first you don't succeed, you're about average.


0

Response Number 4
Name: DOS n00b
Date: May 10, 2005 at 03:18:07 Pacific
Reply:

DST={drive|file|drive:partition|@MCsessionname|@MTx}

maby this will work then:
dst=2:1:\CToexHD.gho

i'll go try that

An enemy is not to be underestimated.


0

Response Number 5
Name: Mechanix2Go
Date: May 10, 2005 at 03:52:10 Pacific
Reply:

That might work.

I wonder if the

drive:partition

menas, in your case, second drive:firat partition

If it does and if you have two HDs on IDE, the the USB drive would be the THIRD drive.

Dunno.

***
A minor point: since your quit bat reboots the mschine, there's not much point CALLing it. Because it's not coming back.

Nor much point in EXIT.

M2


If at first you don't succeed, you're about average.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batchfile for: Ghost 8.0 --> Ext.HD

Letting Ghost search for HD label www.computing.net/answers/programming/letting-ghost-search-for-hd-label/12275.html

Possible write to dvd-rw from DOS? www.computing.net/answers/programming/possible-write-to-dvdrw-from-dos/12406.html

Ghost 8.0 burn to CD/DVD www.computing.net/answers/programming/ghost-80-burn-to-cddvd/12758.html