home *** CD-ROM | disk | FTP | other *** search
- FORMAT
-
- FORMAT is an external command that destroys all existing files on a disk or
- partition of a hard disk (if any), and formats the disk to prepare it for
- future use. FORMAT won't work for disks on another computer in a network,
- virtual disks, or disks defined by JOIN, ASSIGN, or SUBST. The NEW_TERMS
- DISKETTE topic lists diskette capacities.
-
- FORMAT [d:][/V][/S][/4]
- [/1][/8][/B] [ancient DOS]
- [/C][/H][/N:x][/T:y] [new DOS 3.2]
- [/F:z] [/SELECT] [new DOS 4.0]
-
- d: specifies the drive letter to be formatted. If not specified, the default
- drive will be used.
-
- /V causes FORMAT to pause and ask you for an optional volume label. (If you
- forget to use /V on the FORMAT command, you can execute LABEL later.
- DOS 4.0 allows /V:label, so FORMAT doesn't need to pause and ask.)
-
- /S causes FORMAT to copy the system files and COMMAND.COM to the disk after
- formatting it. It is important that the system files be in the locations
- FORMAT copies them to. (If you forget to use /S on the FORMAT command, you
- can execute SYS later, provided the disk is empty.) [Not supported on OS/2]
-
- /4 attempts to format a double-sided diskette in a high-capacity 5 ¼"
- diskette drive. It succeeds occasionally. Not recommended.
-
- /1 format a 5 ¼" single-sided diskette with 9 sectors/track, unless /8 used.
- [Not supported on OS/2]
-
- /8 format a 5 ¼" diskette with 8 sectors/track . The default is 9.
- [Not supported on OS/2]
-
- /B leaves room on the 5 ¼" diskette for the system files, but does not copy
- them to the disk. /B implies /8. [Not supported on OS/2]
-
- /C clears existing data from the disk, but does not write formatting
- information on the disk. (Not present on all versions of DOS.)
-
- /H [new DOS 3.2] or /SELECT [new DOS 4.0] causes FORMAT to format the disk
- without waiting for ENTER to be pressed. A dangerous but useful option in
- BATCH files. (Not present on all versions of DOS.)
-
- /N:x and /T:y are used to format a diskette with a non-standard number of
- sectors (x) and tracks (y). A common use of /N and /T is to format a
- double-sided diskette in a 3 ½" high-capacity drive, using x=9 and y=80.
- See the NEW_TERMS DISKETTE topic for valid sector and track combinations.
-
- /F:z On DOS 4.0 systems, and some earlier systems, /F:z can be used instead
- of /N and /T to format a diskette. z is used to specify the capacity of
- the diskette to be formatted. See the NEW_TERMS DISKETTE topic for a list
- of valid diskette capacities.