Moin!DotNetZip保存位置
using (ZipFile zip = new ZipFile())
{
// add this map file into the "images" directory in the zip archive
zip.AddFile("c:\\images\\personal\\7440-N49th.png", "images");
// add the report into a different directory in the archive
zip.AddFile("c:\\Reports\\2008-Regional-Sales-Report.pdf", "files");
zip.AddFile("ReadMe.txt");
zip.Save("MyZipFile.zip");
}
这个例子存储在“C:\ Program Files文件(x86)的\ IIS快车”的MyZipFile.zip,我不能在网络上找到任何简单的例子,有没有办法改变这条道路?我怀疑我有权访问我的虚拟主机。
究竟什么是你问?只需提供文件的完整路径。 –