title: Why doesn't it work as expected?
body: <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  using System.IO;
  using System.Diagnostics;
  
  namespace Test
  {
      public partial class Form1 : Form
      {
          public Form1()
          {
              InitializeComponent();
          }
  
          private void button1_Click(object sender, EventArgs e)
          {
              using (FolderBrowserDialog fbd = new FolderBrowserDialog() { Description = "Select your path" })
              {
                  if (fbd.ShowDialog() == DialogResult.OK)
                      tbxFrom.Text = fbd.SelectedPath;
              }
          }
  
          private void button2_Click(object sender, EventArgs e)
          {
              var myLyndaFiles = Directory.GetFiles(tbxFrom.Text, ".lynda");
              var lynda = Directory.GetFiles(tbxProgrammLocation.Text, ".exe");
              for (int i = 0; i &lt; myLyndaFiles.Length; i++) 
              {
                  Process.Start(@"C:\WINDOWS\system32\cmd.exe", lynda[0] + " /F " + myLyndaFiles[i] +  " " + tbxTo.Text + "\n");
                  tbxOut.Text = i.ToString(); 
              }
          }
  
          private void button3_Click(object sender, EventArgs e)
          {
              using (FolderBrowserDialog fbd = new FolderBrowserDialog() { Description = "Select your path" })
              {
                  if (fbd.ShowDialog() == DialogResult.OK)
                      tbxTo.Text = fbd.SelectedPath;
              }
          }
  
          private void btnStartFrom_Click(object sender, EventArgs e)
          {
              using (FolderBrowserDialog fbd = new FolderBrowserDialog() { Description = "Select your path" })
              {
                  if (fbd.ShowDialog() == DialogResult.OK)
                      tbxProgrammLocation.Text = fbd.SelectedPath;
              }
          }
      }
  }
  </code></pre>
  
  <p>Please someone help me! I don't know why but <code>Directory.GetFiles</code> doesn't work as it looks like. I looked into the <code>var myLyndaFiles</code> via breakpoint but I get that it is null more or less [0] --> but there are more than 20 files there...</p>