title: Retrieving name of all files in a folder with csv format
body: <p>I would like to show name of CSV-files, which are in folder via message box.</p>
  
  <p>for this job, I have a for each loop and a script task I have also defined a sting variable <code>Filename</code></p>
  
  <p>I have set Enumarato for foreachloop to <code>Foreach-File-Enumarator</code> and set the Variable to my variable</p>
  
  <p><a href="https://i.stack.imgur.com/TjC9W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TjC9W.png" alt="enter image description here"></a></p>
  
  <p>and in the expression did so:
  <a href="https://i.stack.imgur.com/xwJdG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xwJdG.png" alt="enter image description here"></a></p>
  
  <p>Now I would like to see the name of ech file with this code:</p>
  
  <pre><code>public void Main()
          {
              // TODO: Add your code here
  
              Dts.TaskResult = (int)ScriptResults.Success;
              string value = (string) Dts.Variables["User::FileName"].Value;
              MessageBox.Show(value);
          }
  </code></pre>
  
  <p>but it doesnt work for me. Message box is pop up only for the first file and not for the others
  Could you please help me to solve this problem?</p>