将文件夹转换为字符串c#win。形成 [英] Convert Folder into string c# win. form

查看:117
本文介绍了将文件夹转换为字符串c#win。形成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不使用第三方软件(例如win rar等)的情况下将文件夹转换为字符串而非文件转换为字符串



先谢谢

解决方案

看看这个 MSDN页面 [ ^ ]



它向您展示了如何将文件夹的内容压缩成文件


如果您不想使用第三方工具/库,那么您将不切实际地限制您的选择,因为您将不得不自己写这个功能。



看看: https://sharpcompress.codeplex .com / [ ^ ]

正如我在问题中所说的,没有使用第三方软件,但我认为我必须使用第三方软件。


How to convert a folder into string not file into string without use of 3rd party software such as win rar etc.

Thanks in advance

解决方案

have a look at this MSDN page[^]

it shows you how to compress the contents of a folder into a file


You are unrealistically restricting your choices if you don't want to use 3rd party tools/libraries since you will have to write that functionality yourself.

Take a look at : https://sharpcompress.codeplex.com/[^]


as i said in the question no use of 3rd party software but i think i have to go for 3rd party software.


这篇关于将文件夹转换为字符串c#win。形成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆