1、为什么现在的压缩软件都跟着winrar的设计
rar就winrar的格式,
设计上的确为了客户习惯,都按winrar设计,
毕竟咱们的软件都是在免费的提供给大家,
功能上现还是希望做到真正的适用于大家
2、急求! 网页设计作业,设计一个个人网站。可以用压缩包的形式发送到我的qq邮箱[email protected]
?
3、java设计 ZIP格式压缩/解压系统设计
给你一点关键部分的提示
你可能需要用到apache zip这个组件
http://camel.apache.org/zip-dataformat.html
// zipFileName为要解压缩的zip为文件名,例:c:\\filename.zip
// outputDirectoty为解压缩后文件名,例:c:\\filename
public void unZip(String zipFileName, String outputDirectory)
throws Exception {
InputStream in = null;
FileOutputStream out = null;
try {
zipFile = new ZipFile(zipFileName);
java.util.Enumeration e = zipFile.getEntries();
// org.apache.tools.zip.ZipEntry zipEntry = null;
createDirectory(outputDirectory, "");
while (e.hasMoreElements()) {
zipEntry = (ZipEntry) e.nextElement();
System.out.println("unziping " + zipEntry.getName());
if (zipEntry.isDirectory()) {
String name = zipEntry.getName();
name = name.substring(0, name.length() - 1);
File f = new File(outputDirectory + File.separator + name);
f.mkdir();
System.out.println("创建目录:" + outputDirectory
+ File.separator + name);
} else {
String fileName = zipEntry.getName();
fileName = fileName.replace('\\', '/');
// System.out.println("测试文件1:" +fileName);
if (fileName.indexOf("/") != -1) {
createDirectory(outputDirectory, fileName.substring(0,
fileName.lastIndexOf("/")));
fileName = fileName.substring(
fileName.lastIndexOf("/") + 1, fileName
.length());
}
try {
f = new File(outputDirectory + File.separator
+ zipEntry.getName());
in = zipFile.getInputStream(zipEntry);
out = new FileOutputStream(f);
byte[] by = new byte[100000];
int c;
while ((c = in.read(by)) != -1) {
out.write(by, 0, c);
}
out.flush();
} catch (Exception ee) {
} finally {
if (in != null) {
in.close(); //解压完成后注意关闭输入流对象
}
if (out != null) {
out.close(); //解压完成后注意关闭输出流对象
}
}
}
}
} catch (Exception ex) {
System.out.println(ex.getMessage());
} finally {
zipFile.close(); //解压完成后注意关闭apache自带zip流对象
}
}
4、求一份电大的作业Dreamweaver软件设计和开发一网站
可以在模板之家寻找
5、如何在网页设计中实现压缩客户端指定路径的文件夹。
<script language="javascript" type="text/javascript">
function runRar(){
var winRar=new ActiveXObject("WScript.Shell");
var cmd="winrar a d:\\test.rar d:\\test -r " ;
winRar.run(cmd,0,true); //0不显示界面,1显示界面
}
</script>
给压缩按钮加上onClick=runRar();
WINRAR客户端一般都安装了吧,使用版它的命令行权功能吧。
很简单是吧?