问题描述
任何人都可以给我一个解压缩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解压缩受密码保护的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!