title: Identify the drive of a program on Windows
body: <p>I have a Windows program coded in C++. To get the drive's serial number of the computer's drive, I run "wmic path win32_physicalmedia get SerialNumber" in the program with _popen().</p>
  
  <p>However, the computers that run the program may have many drives, and USB drives also appear in the list.</p>
  
  <p>How can I do to know which of the drives has the program I'm running? Thanks!</p>