Windows XP And MS-DOS

November 13, 2009 at 22:43:15
Specs: Windows 98, AMD K6-2 500/256 PC-
Guys/Gals,


I run Windows 98SE and use batch files a lot. One of the

things that I do with them is to restore my C: Drive from a

Ghost image stored on my G: partition. The batch is as follows:


@echo off

GhostCE.exe -clone,mode=pload,src=G:\01_Ghost\Newest.gho:1,dst=1:1 -sure

set comspec=c:\command.com
c:
cd\
set winbootdir=c:\windows
c:\windows\win.com


the set comspec, etc... lines will cause my computer to go directly to my

desktop after the C: Drive has been restored.

A friend of mine has a Windows XP box and when I wrote essentially the

same batch file for him, his box would NOT go to the desktop after the restore.

I eventually found the answer as to WHY it wouldn't work in XP, but for

the life of me, I can't find the answer I got.

Can you please shed some light on this and tell me why XP won't automatically

go to the desktop after the restore is done?

Thank you in advance for your help.

Bug_zs


See More: Windows XP And MS-DOS

Report •


#1
November 13, 2009 at 23:37:40
Because there is no MS-DOS in Windows XP. Windows 98 sits on top of DOS and runs pure DOS commands. DOS is a 16 bit single user environment.

Windowx XP has a command line interpreter that emulates some DOS commands but because it is a 32 bit multi user environment, behaves totally different.

Delete all the following:

set comspec=c:\command.com
c:
cd\
set winbootdir=c:\windows
c:\windows\win.com

which is meaningless to Windows Xp and replace it with Exit.

In windows XP any parameters configured with the set command are lost when you return to the desktop.

Stuart


Report •

#2
November 14, 2009 at 06:39:38
Hi Stuart,

You're right. But to 'go to the desktop' [sic] you need to reboot.

There's no win.com. NT uses ntdetect & ntldr.


=====================================
Helping others achieve escape felicity

M2


Report •

#3
November 14, 2009 at 10:19:45
That's if it is doing it from the Recovery Console, which when you think about it, it would have to be.

I assumed it was being done from a command prompt but then it wouldn't be possible to replace drive C:.

Stuart


Report •

Related Solutions

#4
November 14, 2009 at 10:45:45
I read it as booted in DOS and using an image program.


=====================================
Helping others achieve escape felicity

M2


Report •

#5
November 14, 2009 at 10:46:06
Bug, what do you mean with "going to desktop" ?

Also check GhostCE.exe compatibility between w98 and wXP ... don't know these Ghost-things, but arent you restoring an OS ? That would mean : the same OS. No ? Consequently, what, you try to do, will not work ?!


Report •

#6
November 14, 2009 at 11:34:36
tvc,

An imaging program, like Ghost or far better PQDI, doesn't know or care what's on the drive. It just saves/restores byte for byte.


=====================================
Helping others achieve escape felicity

M2


Report •

#7
November 22, 2009 at 05:54:05
Dear Tvc,

>Bug, what do you mean with "going to desktop" ?


After Ghost restores the C: from the image I stored

on G: (Newest.gho), my computer screen goes

black, my restore floppy in the A: drive activates

the last part of the batch file (the set comspec,

etc... lines) and after about 1 minute I'm looking

at my desktop, so I can start using my computer.


>Also check GhostCE.exe compatibility between w98

and wXP

Ghost Corporate Edition (and 2003) are compatable

with Win XP


>don't know these Ghost-things, but arent you

restoring an OS ?

Yep, and on my Win 98SE box it takes about 3-4

minutes to get to a pristine C:.

My bud's XP box restores in about 6 minutes.


>That would mean : the same OS. No ?

Yes


>Consequently, what, you try to do, will not work ?!

I've been doing it successfully for the past 13 years!
--------------------------------------------------------
Mechanix2Go,

Drive Image was bought out by Symantec and

is now Ghost 14.

I use either Ghost 2003 or Ghost Corporate Edition,

both of which will "play nice" with Windows XP and

NTFS. THEE selling point about Ghost for me was

that I could make or restore my C: drive via a DOS

batch file and not have to baby sit either

operation.

I also wrote a DOS batch file that will make a

new Ghost image to the G: drive and then burn an

image of my C: drive to a CD, all without having

to go near my computer once I put the floppy and

CD discs in and hit the power switch to "on".


Bug_zs


Report •

#8
November 22, 2009 at 06:34:50
Like I said in #2 you need to reboot.


=====================================
Helping others achieve escape felicity

M2


Report •


Ask Question