title: How to check drive format type with a batch file
body: <p>I have a few codes here that work but I need something new.
  I have drive letter detect and if CD Exist in drive batch code</p>
  
  <p>But now I need if is a cd drive batch code and if not do other thing</p>
  
  <p>Codes I Have:</p>
  
  <p>if CD in drive:</p>
  
  <pre><code>@echo off
  title CD Test
  
  :main
  CLS
  WMIC CDROM E: GET MEDIALOADED | FINDSTR "TRUE"
  IF %ERRORLEVEL% EQU 0 (
  goto one
  ) ELSE (
  goto two
  )
  </code></pre>
  
  <p>If Drive Letter Exist:</p>
  
  <pre><code>@echo off
  title If Exist Test
  
  :main
  CLS
  echo.
  echo press any key to see if drive C:\ exists
  echo.
  pause&gt;nul
  IF EXIST C:\ (GOTO yes) ELSE (GOTO no)
  </code></pre>
  
  <p>There and while both of those are working great I have no idea how to tell if its a cd drive or say NTFS or FAT32  I believe CD drive format if CDFS but im not sure.</p>
  
  <p>So i need a code that will tell me if drive is NTFS/FAT32 or CDFS and goto 1 option or other based on findings.</p>
  
  <p>Or would it be better to just check if drive letter is empty? 0 bytes...
  Would that effect if say a empty usb was plugged in it could be called a cd drive?</p>