I am looking to create a program that finds all files of a certain type on my desktop and places them into specific folders, for example, I would have all files with .txt in
You can try with Directory.GetFiles and fix your pattern
string[] files = Directory.GetFiles(@"c:\", "*.txt"); foreach (string file in files) { File.Copy(file, "...."); } Or Move foreach (string file in files) { File.Move(file, "...."); }
http://msdn.microsoft.com/en-us/library/wz42302f