title: delete characters to the right of the second space in filename
body: <p>I will be consistently copying files from an external server to a local server.  The file names are of the following format:</p>
  
  <pre><code>Example 1     Invoice MM500780 10 26 2012 3 52 15 PM.PDF
  Example 2     Invoice PS100679-02 10 30 2012 9 31 35 AM.PDF
  Example 3     Return RTN001116 10 26 2012 8 59 56 AM.PDF
  </code></pre>
  
  <p>I would like to rename all the files by trimming any characters after the second space (which represent the date and time).  Files names should be:</p>
  
  <pre><code>Example 1     Invoice MM500780.PDF
  Example 2     Invoice PS100679-02.PDF
  Example 3     Return RTN001116.PDF
  </code></pre>
  
  <p>Is there anyway I could create a powershell file and run it via task manager?</p>
  
  <p>Thanks for any assistance.</p>