title: How to detect if EFI partition is already mounted in Windows via batch script?
body: <p>I'm trying to write a batch script to detect if an EFI partition is already mounted in Windows.</p>
  
  <p>Ultimately, my goal is to use <code>mountvol /S</code> (mount EFI system partition) only if the EFI partition is not already mounted.</p>
  
  <p>The <code>diskpart</code> utility with the <code>list volume</code> command has some potentially helpful information as does <code>mountvol</code> by itself, but it looks like both of these will require some string parsing.  </p>
  
  <p>Is there a better way?</p>