1.

Solve : "Bad command or file name" during system restore?

Answer»

I have an Emachine T2542 Desktop. I'm trying to do a complete restore using the Restore CD's that came with the computer. After inserting the disk, I reboot the computer and get the FOLLOWING:

System Restore Menu/ WIndows XP
1. Restore WIndows Xp
2. Boot to command prompt from CD-ROM

Please select 1 or 2: [1,2]? 2

No matter which one I select, I get "Bad command or file name"

A:\> <<(What do I type here?)

Whenever I type something in the provided space, I get the same message. Please help.Do you have a floppyThe computer has a floppy drive, but I don't have a floppy disk to restore the computer.if you have a blank floppy than download this file run it and let the computer boot from the floppy run restore from there
http://www.allbootdisks.com/downloads/Disks/Windows_98_Boot_Disk_Download49/Automatic%20Boot%20Disk/Windows98.exe how are you supposed to run a Windows XP restore from a Windows 98 Boot disk?that error message sounds like a missing command interpreter Quote from: mat123 on March 08, 2010, 06:05:19 PM

that error message sounds like a missing command interpreter

Well it's not. Windows NT doesn't have a command interpreter that is required for boot-up.

Quote from: tom97531 on March 07, 2010, 09:19:56 AM
Whenever I type something in the provided space, I get the same message. Please help.

type "dir" and report what it says.After typing "dir" I get a very long list "country, bug, display, etc." followed by

27 files   1,422,108 bytes
0 dirs          28,672 bytes free

Do I scrap mat123's idea about the floppy? Finally got a hold of one today but seems to be a bad disk. I can get more tomorrow.Try it again.
Do NOT use the number pad.
Use the numbers at the top of the keyboard.


"Use the numbers at the top of the keyboard."


Already tried that and just tried it again. Still get "Bad command or file name".I was guessing. Bad guess.
You said you can do the 'DIR' command, so the system is there and reads your keyboard OK.
Is there an AUTOEXEC.BAT file present?'
If so, Do this: (the purple letters.)
A:>type autoexec.bat
Also:
A:>type config.sys

Maybe  that will provide a clue.
 
dir with the P switch lets you use the spacebar to scroll thru all  the info...
Usage : dir /p Enter...
Following "type autoexec.bat":

(Missing some info off top of screen), then

:Restore

echo off
ghost -clone,mode=load,src=R:\T2542.gho,dst=1 -sure -ntil

cls

ECHO.

WINDOWS XP RESTORE COMPLETE
THE HARD DISK CONTENTS HAVE BEEN RESTORED.

** STORE THIS CD-ROM IN A SAFE LOCATION! **

ECHO REMOVE THIS CD ROM FROM THE TRAY AND PRESS ANY KEY TO REBOOT THE SYSTEM..

a:\EJECTCD.exe r:

pause
a:\Reboot.exe

goto exit

:exit

A:\>

Pressing any key does nothing


Following "type config.sys":

BUFFERS=20
FILES=60
DOS=HIGH,UMB
stacks=9,256
lastdrive=z
shell=a:\command.com a:\ /p
devicehigh=ansi.sys
devicehigh=oakcdrom.sys /D:GEMCD001
REM Uncomment4UK
rem devicehigh=display.sys con=(ega,,1)
rem country=044,850,country.sys
A:\>


Following "dir /p":

ANSI SYS 9,719
AUTOEXEC BAT 2,134
CHKDSK EXE 27,968
CHOICE COM 1,754
COMMAND COM 93,040
CONFIG SYS 242
COUNTRY SYS 30,722
DEBUG EXE 20,490
DISPLAY SYS 13,207
DOSKEY COM 15,495
EDIT COM 69,854
EGA CPI 58,870
EJECTCD EXE 8,603
EM_LOCK EXE 7,729
FDISK EXE 66,060
FORMAT COM 64,247
GHOST EXE 644,976
HIMEM SYS 4,768
IO SYS 116,736
KEYB COM 12,187
KEYBOARD SYS 34,566
MODE COM 29,239
MSCDEX EXE 25,473
MSDOS SYS 9
OAKCDROM SYS 41,302
REBOOT EXE 755
SYS COM 21,943

27 FILES 1,422,108 BYTES
0 DIRS 28,672 BYTES FREETry:
A:/>TYPE AUTOEXEC.BAT|MORE

This will show contents of AUTOEXEC.BAT file in the MORE utility, press spacebar to advance a screen's information, and enter to advance a line. Quote from: Veltas on March 11, 2010, 03:53:49 AM
Try:
A:/>TYPE AUTOEXEC.BAT|MORE

Says:

Write protect error writing drive A


Discussion

No Comment Found