如何使用7Z解压缩受密码保护的文件? [英] How to decompress password protected files using 7Z?

查看:1391
本文介绍了如何使用7Z解压缩受密码保护的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





任何人都可以给我一个解压缩7z密码保护文件的提示吗?用C#编写的样本会很棒。迫切需要如此快速的帮助将不胜感激。



谢谢你。



我尝试过:



ProcessStartInfo pro = new ProcessStartInfo();

pro.WindowStyle = ProcessWindowStyle.Hidden;

pro.FileName = zPath;

pro.Arguments = string.Format(x \{0} \ -y -o \{1} \,sourceArchive,destination);

处理x = Process.Start(pro);

x.WaitForExit( );



得到这个,但如何将passowrd作为参数传递。

Hi,

Could any one please give me a hint on decompress 7z password protected files? A sample written in C # would be great.Its urgent requirement so quick help would be appreciated.

Thank you in adavance.

What I have tried:

ProcessStartInfo pro = new ProcessStartInfo();
pro.WindowStyle = ProcessWindowStyle.Hidden;
pro.FileName = zPath;
pro.Arguments = string.Format("x \"{0}\" -y -o\"{1}\"", sourceArchive, destination);
Process x = Process.Start(pro);
x.WaitForExit();

Got this one but how to pass passowrd as arguments.

推荐答案

从谷歌开始: 解压缩7z密码保护文件c# - Google Se拱门 [ ^ ]

单独的顶部链接显示了该怎么做: c# - 带密码的SevenZSharp解码 - Stack Overflow [ ^ ]
Start with google: decompress 7z password protected files c# - Google Search[^]
The top link alone shows you what to do: c# - SevenZSharp Decode with password - Stack Overflow[^]


这篇关于如何使用7Z解压缩受密码保护的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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