.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

how to take backup of Files and folder using C#

Posted By: kamlesh     Posted Date: August 23, 2011    Points:5   Category :C#
how to take backup of Files and folder using C#

Author: Amit Mehra             
Posted Date: August 25, 2011     Points: 20   


What do you mean by backup files and folder? Do you want to copy all files and folder in another location programmatically?

If yes than you can use

File.Copy("from Path","TO Path") method for copying files to another location

Please "Mark As Answer " if this post help you.
Author: Vinodh             
Posted Date: August 26, 2011     Points: 20   

Hi Kamlesh,

You can zip your files and copy to backup folder, hope this will help you : http://dotnetzip.codeplex.com/

Author: Gowthammanju             
Posted Date: August 29, 2011     Points: 20   

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend