Command: whichfat

  WHICHFAT is a FAT32 kernel support detection and per-drive FAT (12-32)
  type detection < 512 bytes.

Syntax:

  WHICHFAT
  WHICHFAT x:

Options:

  x:  The drive letter, e.g. C: or D:

Comments:

  Usage to detect kernel support:
    WHICHFAT
  The result is returned in ERRORLEVEL / EXITCODE:
    0 has FAT32 kernel
    1 has no FAT32 kernel

  Usage to detect FAT type of a drive letter:
    WHICHFAT x:
  The result is returned in ERRORLEVEL / EXITCODE:
    0 could not be detected
    1 invalid drive letter
   12 drive is FAT12
   16 drive is FAT16
   32 drive is FAT32

Examples:

  whichfat
  if errorlevel 1 echo noFAT32
  if errorlevel 0 echo FAT32
  OR:
  echo Errorlevel is: %errorlevel%

  whichfat c:
  echo Errorlevel is: %errorlevel%

See also:

  aefdisk
  errorlevel/exitcode
  format
  kernel
  ranishpm
  sys
  vol
  xfdisk

  Copyright © 2003 Eric Auer, help version 2023 W. Spiegl.

  This file is derived from the FreeDOS Spec Command HOWTO.
  See the file H2Cpying for copying conditions.