Hi,
see this code as an example:
string root = "C:\\Ajith\\aaaa";
System.IO.Directory.CreateDirectory(root + "\\A");
System.IO.Directory.CreateDirectory(root + "\\B");
System.IO.File.Move(root + "\\test1.pdf", root + "\\A\\test1.pdf");
System.IO.File.Move(root + "\\test2.pdf", root + "\\B\\test2.pdf");
To get the list of all files in your directory you could use this code:
string [] files = System.IO.Directory.GetFiles(root);