Monday, May 16, 2011

Copy File From One Directory To Another

By using this code 
     string source = @"C:\Untitled-1.html";
        string dest = Server.MapPath("~/");
        string filename = "Untitled-1.html";
       File.Copy(source, dest + filename + (new FileInfo(source).Extension));








          

No comments:

Post a Comment