开发者

WPF, C# File Archiving

开发者 https://www.devze.com 2023-02-22 06:14 出处:网络
My开发者_如何学Python WPF Application creates several files with each instance of its use. These files can be reused. As the user continues to use it, I want to ensure that the files get archived over

My开发者_如何学Python WPF Application creates several files with each instance of its use. These files can be reused. As the user continues to use it, I want to ensure that the files get archived over time and the user doesn't find the folder with hundreds of files after a while. What can I do for this?


By archiving - do you mean that you want to compress the files to a zip file or similiar?

If that is the case - you could use Sharp Zip Lib.

see:

http://dotnet-snippets.com/dns/c-using-sharp-zip-lib-to-compress-files-SID586.aspx

With that it should be straight forward to compress your older files to an archivedfiles.zip

0

精彩评论

暂无评论...
验证码 换一张
取 消