title: For each listbox item in variable
body: <p>somehow i seem to be blind this morning ;)
  i have the following code[1] which does read
  the object collection out of an ListBox.
  with the string b i can "retrieve" the strings</p>
  
  <p>in b there are filenames and directory paths stored
  that i want to backup with xcopy code [2].</p>
  
  <p>Code:</p>
  
  <pre><code>private void btnBenutz_Click(object sender, EventArgs e)
  {
      lblAusgabe2.Text = "";
      ListBox.ObjectCollection a = listBox1.Items;
      foreach (string x in a)
      {
          b = x;
          lblAusgabe2.Text += "\n" + b;
      }
  }
  </code></pre>
  
  <p>More code:</p>
  
  <pre><code> Process.Start("XCOPY.EXE", "/E /I /Y" + b + pfadauswahl + "\\Backup\\" + dt.ToString("yyyy-MM-dd") + "\\UserData\\");
  </code></pre>
  
  <p>how can i use b as an array which i probably have to ? otherwise only the first item will always been read out? Also the process start i have to use outside of the btnBenutz... so some variable has to be initialized in the public partial class Form2 : Form</p>