Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: "Bad command or file name" during system restore  (Read 19161 times)

0 Members and 1 Guest are viewing this topic.

tom97531

    Topic Starter


    Rookie

    "Bad command or file name" during system restore
    « on: March 07, 2010, 09:19:56 AM »
    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.

    mat123



      Hopeful

      Thanked: 16
      • Yes
      • Yes
      • Yes
    • Experience: Familiar
    • OS: Windows XP
    Re: "Bad command or file name" during system restore
    « Reply #1 on: March 07, 2010, 05:09:07 PM »
    Do you have a floppy



    tom97531

      Topic Starter


      Rookie

      Re: "Bad command or file name" during system restore
      « Reply #2 on: March 07, 2010, 08:34:32 PM »
      The computer has a floppy drive, but I don't have a floppy disk to restore the computer.

      mat123



        Hopeful

        Thanked: 16
        • Yes
        • Yes
        • Yes
      • Experience: Familiar
      • OS: Windows XP
      Re: "Bad command or file name" during system restore
      « Reply #3 on: March 07, 2010, 09:09:05 PM »
      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 :)



      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: "Bad command or file name" during system restore
      « Reply #4 on: March 08, 2010, 04:20:51 AM »
      how are you supposed to run a Windows XP restore from a Windows 98 Boot disk?
      I was trying to dereference Null Pointers before it was cool.

      mat123



        Hopeful

        Thanked: 16
        • Yes
        • Yes
        • Yes
      • Experience: Familiar
      • OS: Windows XP
      Re: "Bad command or file name" during system restore
      « Reply #5 on: March 08, 2010, 06:05:19 PM »
      that error message sounds like a missing command interpreter



      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: "Bad command or file name" during system restore
      « Reply #6 on: March 09, 2010, 12:36:47 AM »
      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.

      Whenever I type something in the provided space, I get the same message. Please help.

      type "dir" and report what it says.
      I was trying to dereference Null Pointers before it was cool.

      tom97531

        Topic Starter


        Rookie

        Re: "Bad command or file name" during system restore
        « Reply #7 on: March 09, 2010, 08:05:09 PM »
        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.

        Geek-9pm


          Mastermind
        • Geek After Dark
        • Thanked: 1026
          • Gekk9pm bnlog
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 10
        Re: "Bad command or file name" during system restore
        « Reply #8 on: March 10, 2010, 01:27:01 AM »
        Try it again.
        Do NOT use the number pad.
        Use the numbers at the top of the keyboard.



        tom97531

          Topic Starter


          Rookie

          Re: "Bad command or file name" during system restore
          « Reply #9 on: March 10, 2010, 08:51:39 AM »
          "Use the numbers at the top of the keyboard."


          Already tried that and just tried it again. Still get "Bad command or file name".

          Geek-9pm


            Mastermind
          • Geek After Dark
          • Thanked: 1026
            • Gekk9pm bnlog
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 10
          Re: "Bad command or file name" during system restore
          « Reply #10 on: March 10, 2010, 10:51:15 AM »
          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.
           

          patio

          • Moderator


          • Genius
          • Maud' Dib
          • Thanked: 1769
            • Yes
          • Experience: Beginner
          • OS: Windows 7
          Re: "Bad command or file name" during system restore
          « Reply #11 on: March 10, 2010, 10:58:19 AM »
          dir with the p switch lets you use the spacebar to scroll thru all  the info...
          Usage : dir /p Enter...
          " Anyone who goes to a psychiatrist should have his head examined. "

          tom97531

            Topic Starter


            Rookie

            Re: "Bad command or file name" during system restore
            « Reply #12 on: March 10, 2010, 02:17:00 PM »
            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 FREE

            Veltas



              Intermediate

              Thanked: 7
              • Yes
            • Certifications: List
            • Computer: Specs
            • Experience: Beginner
            • OS: Linux variant
            Re: "Bad command or file name" during system restore
            « Reply #13 on: March 11, 2010, 03:53:49 AM »
            Try:
            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.

            tom97531

              Topic Starter


              Rookie

              Re: "Bad command or file name" during system restore
              « Reply #14 on: March 11, 2010, 08:45:09 AM »
              Try:
              A:/>TYPE AUTOEXEC.BAT|MORE

              Says:

              Write protect error writing drive A