title: Why is the command prompt disappearing after loading?
body: <p>With the code below, the command prompt disappears almost immediately after appearing. Shouldn't this code display all the removable drives being used? </p>
  
  <pre><code>using System.Linq;
  using System.IO;
  using System;
  
  namespace ConsoleApplication1
  {
      class Program
      {
          static void Main(string[] args)
          {
              var drives = DriveInfo.GetDrives()
               .Where(drive =&gt; drive.IsReady &amp;&amp; drive.DriveType == DriveType.Removable);
              Console.WriteLine("Removable drives being used:", drives);
          } 
      }
  }
  </code></pre>
  
  <p>Many thanks in advance!</p>