The solutions you listed worked, however I did have to add .ToArray() to the end of each to get it to populate into the array. string[] folders = Directory.GetDirectories(txtbxOldFolder.Text) .Select(d => new DirectoryInfo(d).Name).ToArray(); string[] files = Directory.GetFiles(txtbxNewFolder.Text) .Select(f => Path.GetFileName(f)) .ToArray();
–
Fuzz EvansFeb 24 '12 at 15:44