>> PC World Forums >> Software and Services >> Windows XP >> Windows XP And MS-DOS
1 reply [Last post]
Al Camp
403 posts since 1 January 2000
Sat, 14/11/2009 - 16:33
Windows XP And MS-DOS

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.

Big_Al

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mark blatchford
115 posts since 1 January 2000
Sun, 15/11/2009 - 11:06
re - Windows XP And MS-DOS

Hi, Al. What point does it get to. does it do everything its supposed to but stop at login screen instead of desktop, or does it not even get that far.
I have a feeling it likely doesn't get far into the reboot at all.
I have a feeling XP doesnt use the comspec command, let alone command.com.
I might be way off the mark, like I said its just a feeling (a distant memory) as I realy haven't dealt with XP for a couple of years.

Here's hoping Iv'e put you on the right path

PS just had a quick look, appears it uses cmd.com in the windows/system32 directory

Mark

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
 
Gift Guide
MWave
Samsung

CXO Latest

LED Advisor
 

Colour your world with Samsung

A chance to win with every
Samsung Consumable purchase*