title: Rename files with same name but differing extensions
body: <p>If a tickbox is clicked on my application, all files in  a specified folder having the same pre-dot name, (eg. TESTCRC32.xxx) will be re-named. If the filename is something else, (eg. Pic.jpg) this file will not be renamed. </p>
  
  <p>How can I go about this? I was thinking a for loop...</p>
  
  <pre><code>void SecondDlg::OnTickBox() 
  {
  
    // Add code here...
  
     CString oldFile = myPath.Left(myPath.ReverseFind(_T('.'))); 
  
     rename(oldFile, newFile);
  }
  </code></pre>