Skip to content

Instantly share code, notes, and snippets.

@kana-ph
Created September 16, 2016 03:05
Show Gist options
  • Save kana-ph/f4f3869695aed055160289b89b86c601 to your computer and use it in GitHub Desktop.
Save kana-ph/f4f3869695aed055160289b89b86c601 to your computer and use it in GitHub Desktop.
using System;
using System.IO;
string downloads = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + @"\Downloads\";
string[] files = Directory.GetFiles(downloads);
foreach (string file in files)
{
AddToGridView(file);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment