rar 和 unrar 的命令行是什么?

发布于 2024-08-10 22:58:55 字数 168 浏览 2 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

热风软妹 2024-08-17 22:58:55

看一下 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.

∞梦里开花 2024-08-17 22:58:55

http://www.respower.com/page_tutorial_unrar

所以命令是:rar 和 unrar

来源:我用谷歌搜索。

http://www.respower.com/page_tutorial_unrar

So the commands are: rar and unrar

Source: I googled it.

刘备忘录 2024-08-17 22:58:55

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)

莫言歌 2024-08-17 22:58:55

您应该明确您的问题并正确标记它。

请问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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文