-----------------------------------------------
string path = Server.MapPath(@"photos\test2");
string sourcepath = Server.MapPath(@"photos\test");
System.IO.Directory.CreateDirectory(path);
string[] files = System.IO.Directory.GetFiles(sourcepath);
foreach (string s in files)
{
string filename = System.IO.Path.GetFileName(s);
string destfile = System.IO.Path.Combine(sourcepath, filename);
System.IO.File.Copy(s, destfile, true);
}
-----------------------------------------------But when its run its occur error

Sunny SharmaPosted Sep 10, 2013, 1:02 AM
try this:
-----------------------------------------------
Happy Coding :)
Cheers!
Vasu GadhiyaPosted Sep 10, 2013, 1:09 AM