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

Author Topic: Format command  (Read 21490 times)

0 Members and 2 Guests are viewing this topic.

sooz

  • Guest
Format command
« on: May 18, 2007, 03:38:08 PM »
This is stumping me and it should be so very, very simple.  I want to dispose of my Win 95 system but reformat the hard drives first.  Put in the boot disk and in DOS.  I've very carefully reviewed the format command info and do exactly what it says and still get "bad command or file name" every darn time.  For instance A:\> format d: (no spaces except between format and drive).   Other commands seem to work, but it just won't take format from the A, C or D drives, whether or not I have a "\" after the destination drive.   This is such a mundane thing but I am tearing my hair out!  Help!  Sue

2k_dummy



    Specialist
  • A word, once spoken, can never be recalled.
  • Thanked: 14
    Re: Format command
    « Reply #1 on: May 18, 2007, 03:45:52 PM »
    Normally C: is the boot drive. Unless you have it slaved in another computer you would format c:
    If you don't stand for something, you'll fall for anything.
    _______________________________________ ________
    BlackViper

    Software and utilities

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: Format command
    « Reply #2 on: May 18, 2007, 05:16:51 PM »
    At the A: prompt type C: and hit Enter...then hit dir /p and hit Enter...this should show you the contents of the first hard drive...
    Do the same for the other drive letters and you should be able to tell if it's the hard drive or an optical drive.
    As 2K said C: is normally the boot drive and actually for Win 95/98/ME/ it needs to be C: to run.
    " Anyone who goes to a psychiatrist should have his head examined. "

    contrex

    • Guest
    Re: Format command
    « Reply #3 on: May 19, 2007, 01:11:03 AM »
    Come on folks, read the *censored* question! He's getting "bad command or file name".

    That suggests that DOS cannot find the format.com program, either because it is missing or wrongly named. Sooz, look on the boot disk for a program file called format.com. If it is missing, you can find it on a W98 install disk in the "Win98" folder.

    This is what you should have on a Windows 98 boot floppy.

    Code: [Select]
    Here's what's on a win98 startup floppy, made from a working 98se.

    Volume in drive A has no label.
    Volume Serial Number is 288A-8B81

    Directory of a:\

    23-04-99 22:22 1,103 AUTOEXEC.BAT
    23-04-99 22:22 629 CONFIG.SYS
    23-04-99 22:22 1,416 SETRAMD.BAT
    23-04-99 22:22 14,764 README.TXT
    23-04-99 22:22 6,855 FINDRAMD.EXE
    23-04-99 22:22 12,663 RAMDRIVE.SYS
    23-04-99 22:22 14,386 ASPI4DOS.SYS
    23-04-99 22:22 21,971 BTCDROM.SYS
    23-04-99 22:22 29,620 ASPICD.SYS
    23-04-99 22:22 30,955 BTDOSM.SYS
    23-04-99 22:22 35,330 ASPI2DOS.SYS
    23-04-99 22:22 37,564 ASPI8DOS.SYS
    23-04-99 22:22 40,792 ASPI8U2.SYS
    23-04-99 22:22 64,425 FLASHPT.SYS
    23-04-99 22:22 93,242 EXTRACT.EXE
    23-04-99 22:22 63,916 FDISK.EXE
    23-04-99 22:22 68,871 DRVSPACE.BIN
    23-04-99 22:22 93,890 COMMAND.COM
    23-04-99 22:22 33,191 HIMEM.SYS
    23-04-99 22:22 41,302 OAKCDROM.SYS
    23-04-99 22:22 272,206 EBD.CAB
    23-04-99 22:22 49,575 FORMAT.COM <------------------------------IS THIS ONE PRESENT?
    22 File(s) 1,028,666 bytes
    0 Dir(s) 200,704 bytes free

    2k_dummy



      Specialist
    • A word, once spoken, can never be recalled.
    • Thanked: 14
      Re: Format command
      « Reply #4 on: May 19, 2007, 01:18:20 AM »
      Quote
      Come on folks, read the *censored* question!

      Maybe you should read the question. Format d: will not get the job done.
      If you don't stand for something, you'll fall for anything.
      _______________________________________ ________
      BlackViper

      Software and utilities

      contrex

      • Guest
      Re: Format command
      « Reply #5 on: May 19, 2007, 01:34:17 AM »
      Quote
      Come on folks, read the *censored* question!

      Maybe you should read the question. Format d: will not get the job done.

      I did read the question. The message that sooz actually got was "bad command or file name". That means that, assuming she typed the command correctly (she did, according to what she posted) the DOS program format.com is neither in the logged-in directory or anywhere on the PATH.

      2k_dummy



        Specialist
      • A word, once spoken, can never be recalled.
      • Thanked: 14
        Re: Format command
        « Reply #6 on: May 19, 2007, 01:42:20 AM »
        Quote
        For instance A:\> format d: (no spaces except between format and drive).   Other commands seem to work, but it just won't take format from the A, C or D drives

        The command was certainly typed incorrectly (format d:). It won't take the command from A, C, or D, either because D isn't present or is a non formatable drive.
        If you don't stand for something, you'll fall for anything.
        _______________________________________ ________
        BlackViper

        Software and utilities

        contrex

        • Guest
        Re: Format command
        « Reply #7 on: May 19, 2007, 01:45:29 AM »
        Quote
        For instance A:\> format d: (no spaces except between format and drive).   Other commands seem to work, but it just won't take format from the A, C or D drives

        The command was certainly typed incorrectly (format d:). It won't take the command from A, C, or D, either because D isn't present or is a non formatable drive.

        This is like pulling teeth!

        Her error message said "bad command or filename".

        Look. I have no drive Q. This is what I got...

        Code: [Select]
        c:\>format q:
        Specified drive does not exist.

        Let's wait until sooz posts back, then we'll know, hopefully.

        2k_dummy



          Specialist
        • A word, once spoken, can never be recalled.
        • Thanked: 14
          Re: Format command
          « Reply #8 on: May 19, 2007, 01:48:00 AM »
          So she tried to format her CDrom drive.
          If you don't stand for something, you'll fall for anything.
          _______________________________________ ________
          BlackViper

          Software and utilities

          contrex

          • Guest
          Re: Format command
          « Reply #9 on: May 19, 2007, 01:53:38 AM »
          So she tried to format her CDrom drive.

          You don't give up, do you?

          My CD ROM drve is letter X

          Disk is bootable CD-ROM.

          Code: [Select]
          c:\>format x:
          The type of the file system is RAW.
          Please use the /FS switch to specify the file system
          you wish to use on this volume.


          2k_dummy



            Specialist
          • A word, once spoken, can never be recalled.
          • Thanked: 14
            Re: Format command
            « Reply #10 on: May 19, 2007, 02:06:00 AM »
            The machine in question is windows 95. Is yours? The error message can vary from one OS version to another. On a W98 machine, CD-RW is d:, sitting idle with no disk inserted, format d: returns "Cannot format network drive". The machine does not have any network drives.
            If you don't stand for something, you'll fall for anything.
            _______________________________________ ________
            BlackViper

            Software and utilities

            contrex

            • Guest
            Re: Format command
            « Reply #11 on: May 19, 2007, 02:13:19 AM »
            Stop quibbling.

            From MS

            Quote
            How to Format a Hard Disk

            NOTE: If you receive a "Bad command" or "Bad file name" error message, you may need to extract the Format.com tool to your boot disk.



            Many sources...

            Quote

            NOTE: If you receive a "Bad command" or "Bad file name" error message, you may not have the Format.com program on the floppy.




            2k_dummy



              Specialist
            • A word, once spoken, can never be recalled.
            • Thanked: 14
              Re: Format command
              « Reply #12 on: May 19, 2007, 02:20:24 AM »
              Thats no different from some other commands that microsoft said "the syntax is wrong" and "the command won't work". They were wrong on both counts. But one thing is right, if format.com is missing it will give that error message. That doesn't mean its the only thing that can cause it.
              If you don't stand for something, you'll fall for anything.
              _______________________________________ ________
              BlackViper

              Software and utilities

              GuruGary



                Adviser
                Re: Format command
                « Reply #13 on: May 19, 2007, 09:42:23 AM »
                My understanding of the original question is that the user probably wants to "format" the drive to permanently erase all information on the hard drive. 
                I want to dispose of my Win 95 system but reformat the hard drives first.
                If this is the case, then the FORMAT command will not achieve the desired result.  In this case, you would want a disk wiping utility.  My disk wiping utility of choice is DBAN (http://dban.sourceforge.net/) which can create a bootable CD or floppy to get the job done.

                Sooz: Is your goal to simply format the computer hard drive? Or do you want to permanently erase the information on your drive before you dispose of your computer?

                sooz

                • Guest
                Re: Format command
                « Reply #14 on: May 20, 2007, 01:36:20 PM »
                Thanks so much to all of you for trying to solve my problem! 

                I definitely want to wipe out the hard drive for disposal.  I did a search on the internet before starting this project and there are tons of sites that say all I have to do is reformat the hard disks (2 each).  I don't mind downloading a freeware program to get the same thing accomplished, assuming the two methods give the same results (???).   After this I need to wipe out my old Win 98 computer too. 

                There were two methods I found for creating a Win 95 boot disk but only one was feasible in my situation.  The first one called for going to Start--Settings--Control Panel--Add/Remove programs and selecting Startup Disk to create one from the original Win 95 CD which I no longer have.  So I went to method #2 which had me open My Computer (can't find my notes on where I went after that) and then format a new disk clicking "create a systems disk".  Is a systems disk the same as a boot disk???  Anyways, I checked the dir for that disk (as Contrex suggested), and there was only one file named command.com.   So that probably explains my format command problems.  So what direction do you suggest now?  Thanks again, Sue

                contrex

                • Guest
                Re: Format command
                « Reply #15 on: May 20, 2007, 01:49:20 PM »
                2 methods

                (1)
                Quote
                1. Start Windows 95
                2. Put floppy disk in drive
                3. Copy format.com from your Windows 95 installation to your floppy disk.

                I think you will find format.com in the folder C:\Windows\COMMAND.

                (2) Maybe easier

                Quote
                1. Boot from floppy
                2. At the A: prompt type COPY C:\WINDOWS\COMMAND\FORMAT.COM
                3. You should see "1 file copied" and then get the A: prompt back
                4. If you are sure you want to nuke the disk type FORMAT C: and answer the "are you sure" message appropriately.






                « Last Edit: May 20, 2007, 02:14:07 PM by contrex »

                GuruGary



                  Adviser
                  Re: Format command
                  « Reply #16 on: May 20, 2007, 03:24:02 PM »
                  If you have confidential or sensitive data, then you want something better than the FORMAT command.  The format command will make the data inaccessible to a novice computer user, but computer professionals and experienced computer users can easily recover your files that were on a partition that was simply formatted with a boot disk.

                  What are you going to do with the computer(s) after you have wiped the drive?

                  WillyW



                    Specialist
                  • Thanked: 29
                  • Experience: Experienced
                  • OS: Windows XP
                  Re: Format command
                  « Reply #17 on: May 20, 2007, 03:29:59 PM »
                  Thanks so much to all of you for trying to solve my problem! 

                  I definitely want to wipe out the hard drive for disposal.  I did a search on the internet before starting this project and there are tons of sites that say all I have to do is reformat the hard disks (2 each).

                  This is a function of the level of security that you feel you need.

                  For me,  simply formatting the drive(s) would be ok...  because there is nothing really critical on this machine.    No credit card numbers... nothing like that.



                  Quote
                  I don't mind downloading a freeware program to get the same thing accomplished, assuming the two methods give the same results (???).

                  Not quite the same.

                  See GuryGary's post above.    That's a more secure method.     On general principle,  that is what I would do anyway.

                  The absolute secure method is to remove the hard drive(s) and destroy them.      But for most folks, that is overkill.   

                  Quote
                     After this I need to wipe out my old Win 98 computer too. 


                  There were two methods I found for creating a Win 95 boot disk but only one was feasible in my situation.

                  Even though you don't need this if you follow GuruGary's suggestion,  for future use... if you ever need/want a Win98 or Win95 boot floppy disk:
                  visit   www.bootdisk.com
                  You can download executable files there.
                  Grab the one you want,  and run it.
                  It asks you to insert a floppy.   Then it makes it a boot floppy.   Easy.
                  It is free.

                  (I don't remember if the created boot floppy includes format.com or not.
                  Maybe somebody else here can jump in and let us know.  )

                  Quote
                    The first one called for going to Start--Settings--Control Panel--Add/Remove programs and selecting Startup Disk to create one from the original Win 95 CD which I no longer have.  So I went to method #2 which had me open My Computer (can't find my notes on where I went after that) and then format a new disk clicking "create a systems disk".  Is a systems disk the same as a boot disk???  Anyways, I checked the dir for that disk (as Contrex suggested), and there was only one file named command.com.   So that probably explains my format command problems.  So what direction do you suggest now?  Thanks again, Sue



                  .



                  patio

                  • Moderator


                  • Genius
                  • Maud' Dib
                  • Thanked: 1769
                    • Yes
                  • Experience: Beginner
                  • OS: Windows 7
                  Re: Format command
                  « Reply #18 on: May 20, 2007, 04:36:51 PM »
                  Quote
                    IO.SYS           ; System boot file.
                      MSDOS.SYS        ; Boot option information (paths, multiboot, and so on).
                      DRVSPACE.BIN     ; Microsoft DriveSpace compression driver.
                      CONFIG.SYS       ; Loads the device drivers.
                      HIMEM.SYS        ; Extended (XMS) Memory Manager.
                      COMMAND.COM      ; Command interpreter.
                      AUTOEXEC.BAT     ; A batch file which runs when you boot it.
                      ASPI2DOS.SYS     ; Real-mode Adaptec CD-ROM driver.
                      ASPI4DOS.SYS     ; Real-mode Adaptec CD-ROM driver.
                      ASPI8DOS.SYS     ; Real-mode Adaptec CD-ROM driver.
                      ASPI8U2DOS.SYS   ; Real-mode Adaptec CD-ROM driver.
                      ASPICD.SYS       ; Real-mode Adaptec CD-ROM driver.
                      BTCDROM.SYS      ; Mylex/BusLogic CD-ROM driver.
                      BTDOSM.SYS       ; Mylex/BusLogic CD-ROM driver.
                      FLASHPT.SYS      ; Mylex/BusLogic CD-ROM driver.
                      OAKCDROM.SYS     ; Generic device driver for ATAPI CD-ROM drives.
                      SETRAMD.BAT      ; Searches for first available drive to be a Ramdrive.
                      RAMDRIVE.SYS     ; Creates a Ramdrive during startup.
                      FINDRAMD.EXE     ; Utility to find the RAM drive during startup.
                      EXTRACT.EXE      ; File to expand the Ebd.cab file.
                      FDISK.EXE        ; Disk partition tool.
                      SYS.COM          ; System transfer tool.
                      EBD.SYS          ; Disket identifier file (Windows 98 startup disk)
                      MODE.COM         ; Lets you change console parameters
                      README.TXT       ; Document file
                      EDB.CAB          ; Cabinet (compressed) file containing the following
                        ATTRIB.EXE     ; Add or remove file attributes.
                        CHKDSK.EXE     ; Simpler and smaller disk status tool.
                        DEBUG.EXE      ; Debug utility.
                        EDIT.COM       ; Real-mode emergency text editor.
                        EXT.EXE        ; File extract utility.
                        FORMAT.COM     ; Disk format tool.
                        HELP.BAT       ; Launches the readme.txt for the startup disk.
                        HELP.TXT       ; Help text file.
                        MSCDEX.EXE     ; Microsoft CD-ROM file extension for MS-DOS.
                        RESTART.COM    ; Restart your computer.
                        SCANDISK.EXE   ; Disk status tool.
                        SCANDISK.INI   ; Disk status tool configuration file.
                        SYS.COM        ; system transfer tool.
                        UNINSTAL.EXE   ; Removes Win 98 and restores the previous state.
                  " Anyone who goes to a psychiatrist should have his head examined. "

                  WillyW



                    Specialist
                  • Thanked: 29
                  • Experience: Experienced
                  • OS: Windows XP
                  Re: Format command
                  « Reply #19 on: May 20, 2007, 05:46:39 PM »

                  Quote
                  (I don't remember if the created boot floppy includes format.com or not.
                  Maybe somebody else here can jump in and let us know.  )


                  Quote

                      FDISK.EXE        ; Disk partition tool.

                        FORMAT.COM     ; Disk format tool.


                  Viola` !

                  Thank you.     ;)
                  .



                  sooz

                  • Guest
                  Re: Format command
                  « Reply #20 on: May 20, 2007, 07:42:07 PM »
                  Ta-da, mission accomplished  ;D!!!  GuruGary's explanation on formating vs a delete freeware pgm was most helpful, so I downloaded DiskDeleter ZW and it did the job on both my Win 95 and 98 systems.  Ha, almost cried as I put the later to bed one final time.  Now to haul them to the hazardous materials recycling center.    Seems a sad demise for my old friends but I had to move on....  Thanks to all for your input!  Sue

                  contrex

                  • Guest
                  Re: Format command
                  « Reply #21 on: May 21, 2007, 03:28:48 AM »
                  Quote
                  Anyways, I checked the dir for that disk (as Contrex suggested), and there was only one file named command.com. 

                  So I OWN 2k_dummy.

                  Code: [Select]
                  W00T

                  GX1_Man

                  • Guest
                  Re: Format command
                  « Reply #22 on: May 24, 2007, 07:06:38 PM »
                  The problem was solved 5 days ago.  ;)

                  contrex

                  • Guest
                  Re: Format command
                  « Reply #23 on: May 25, 2007, 01:09:28 AM »
                  The problem was solved 5 days ago.  ;)

                  Someone read the first post and just hit "reply" without reading the whole thread...

                  rapzing

                  • Guest
                  Re: Format command
                  « Reply #24 on: February 20, 2008, 06:24:58 PM »
                  how can i reformatt my computer microsoft xp? :-[

                  patio

                  • Moderator


                  • Genius
                  • Maud' Dib
                  • Thanked: 1769
                    • Yes
                  • Experience: Beginner
                  • OS: Windows 7
                  Re: Format command
                  « Reply #25 on: February 20, 2008, 08:37:30 PM »
                  Following this thread may make it longer to accomplish...
                  Start a new Topic with more details on what exactly you want to accomplish and someone will be along shortly.
                  " Anyone who goes to a psychiatrist should have his head examined. "

                  rhoy

                  • Guest
                  Re: Format command
                  « Reply #26 on: May 27, 2008, 11:06:57 PM »
                  good day to all, my is when start my computer there is ****STOP:0X0000007B.....INACCESSIBLE BOOT DEVICE
                  I CANT LOG ON TO MY COMPUTER
                  PLEASE HELP ABOUT THIS PROBLEM!