Hi
I have more than one word file in a folder.
In that word file i have to replace the ","(comma) with "-"(slash) and need to save the file in the other location.
Thanks.
This way
string[] files = Directory.GetFiles(Server.MapPath("~/Uploads/"), "*.doc"); foreach(string file in files) { File.Copy(file, Server.MapPath("~/Uploads_New/") + Path.GetFileName(file).Replace(",", "-")); }
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.