rar 和 unrar 的命令行是什么?
rar 和 unrar 的命令行是什么?
我需要将 test.txt 压缩为 test.rar,并将 test.rar 解压缩为 test.txt。
我需要将此功能放入 C# WinForm 中。
我安装了 Windows XP 和 WinRar
提前致谢。
What is the command-line for rar and unrar?
I need to rar test.txt to test.rar, and to unrar test.rar to test.txt.
I need to put this functionality in a C# WinForm.
I have Windows XP and WinRar install
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
看一下 SevenZipSharp,它支持 RAR 格式以及其他格式。这样您就不必依赖外部应用程序。
Take a look at SevenZipSharp which supports RAR format as well as others. This way you won't have to rely on external applications.
http://www.respower.com/page_tutorial_unrar
所以命令是:
rar 和
unrar
来源:我用谷歌搜索。
http://www.respower.com/page_tutorial_unrar
So the commands are:
rar
andunrar
Source: I googled it.
SharpZipLib 可能会有所帮助(我不确定它们是否支持 RAR,但您可以压缩文件其他格式,即 ZIP)
SharpZipLib might help (I'm not sure if they support RAR but you can compress the files in other formats i.e ZIP)
您应该明确您的问题并正确标记它。
请问winrar的命令行参数吗?
为此,一个简单的
rar /?
应该可以帮助您。或者您是否需要一种通过 .NET 库解压缩包的方法?
为此,其他答案已经为您提供了大量信息。
不管怎样,你的评论者是对的,不要购买系统不附带的程序,除非你的安装程序确保其他程序在那里。
You should clear out your question and tag it correctly.
Do you ask for the command line parameters for winrar?
For this a simple
rar /?
should help you out.Or do you ask for a way to unrar packages via .NET-libraries?.
For that the other answers give you lot of information already.
Anyway, your commenter is right, do not shell out to programs, that do not come with the system, unless your installer ensures the other program to be there.