using System.IO;
//To create a directory
Directory.CreateDirectory(@"C:\MyNewDir");
//To move a directory
Directory.Move(@"C:\MyNewDir", @"C:\MyMovedDir");
//To delete a directory
Directory.Delete(@"C:\MyMovedDir");
//To Delete a directory recursively
Directory.Delete(@"C:\MyNewDir", true);
//To Delete a File
File.Delete(@"C:\MyFile.Txt");
//To Move a File
File.Move(@"C:\MyFile.Txt", @"C:\MyOtherDir\MyFile.Txt");
//To Copy a file
File.Copy(@"C:\MyFile.Txt", @"C:\MyOtherDir\MyFile.Txt");
//To copy to a different file name is also possible
File.Copy(@"C:\MyFile.Txt", @"C:\MyOtherDir\MyNewFileName.Txt");
//To get information about a file, like the length
//You can also get the extension, directory, LastAccessedtime,
//LastModifiedTime, wether the file exists or not, the creation date,
//attributes of the file etc, from the FileInfo class
FileInfo FI = new FileInfo(@"C:\MyFile.Txt");
Console.WriteLine("File size of MyFile.Txt: {0}", FI.Length);
//copy example
String DateTemp = DateTime.Now;
File.Copy(@"P:\PRD\Products\AHM\prod.CD\Database\d ata.mdb",
@"P:\PRD\Products\AHM\prod.CD\Database\"+ DateTemp +"-data.mdb");
منبع : http://www.eggheadcafe.com/community...in-folder.aspx