title: python open windows explorer
body: <p>Please image such a situation: A local file's icon is displayed in a GUI, right click the icon, a context menu pops, with the option: show file in explorer. Click the option, then a explorer window opened, with the particular file selected. Many editors have such a feature: show in folder or show in explorer</p>
  
  <p>In fact, the GUI is built by PyQt,  my first thought is simple, just open a subprocess and pass the command line:  </p>
  
  <p><code>explorer /select, a_full_path_name</code>  </p>
  
  <p>The behavior is indeed what I need, but when click "show in folder" again, a new explorer window will be opened, even the old one exsits! How about a naughty boy clicking "show in folder" dozens of times in a breath? So I need just one window, if an old one exists, just raise it to the front.</p>
  
  <p>The command <code>start /D a_path .</code> may disappoint the naughty boy(run it several times, only one window.) however, there is no option to highlight a selected file, thus also disappoint me...</p>
  
  <p>As mentioned above, many editors have such a "show in folder" feature, 
  but to my suprise, <strong>PyCharm</strong> "Show in Explorer" will open multiple windows with multiple clicks on the same file, and also the <strong>CodeBlocks</strong> "opening containing folder", however <strong>programmer's notepad</strong> "open containing folder" will always open just one folder on the same file.(To be honest, I have only the 3 editors in my PC except the windows notepad :)</p>
  
  <hr>
  
  <p><strong>My Question:</strong><br>
  Can the feature mentioned above be achieved just by windows cmd?<br>
  If can not, Is there a python way to achieve that?</p>
  
  <p>In fact, I found several related questions in stackoverflow, <a href="https://stackoverflow.com/questions/13702222/showing-file-in-windows-explorer">for example</a>,
  but my problem is unsolved, would somebody give me a ride?</p>