title: How Do I Run a Visual Studio Macro for All Files of a Certain Type Within a Specific Folder Within a Project
body: <p>Visual Studio 2010 macro question:</p>
  
  <p>I have a macro that I can execute within another macro to make changes to .aspx files like so:</p>
  
  <pre><code>DTE.ExecuteCommand("Macros.Abba.Module1.AbbaZabba")
  </code></pre>
  
  <p>I would like to be able to do this for all .aspx files within a folder in the solution explorer. </p>
  
  <p>For instance, my solution explorer looks like:</p>
  
  <p>Solution 'YourSolutionName'</p>
  
  <p>-Project 1</p>
  
  <p>--ParentFolder</p>
  
  <p>---ChildFolder</p>
  
  <p>And I want to be able to have this macro run for each .aspx file within the child folder - but no non-aspx files. I have looked for days for ways to do this but nothing seems to work, right now I have to run the macro by hand on each file and this could take a while. </p>
  
  <p>I do not mind putting the folder name in manually, nor do I mind the alternative of selecting a folder before running the macro. I am very much a beginner at coding so referring me to use some method or other is more helpful than nothing, but less helpful than helping me to walk through it a little.</p>
  
  <p>Thanks </p>