pzheng1 2014-10-14 19:04 采纳率: 0%
浏览 3705

请问诸位大神,如何用matlab实现不解压,直接复制压缩包中的文件?

请问诸位大神,如何用matlab实现不解压,直接复制压缩包中的文件?我已经实现了不解压,直接得到压缩包中的所有文件命,代码如下:

% Create a Java file of the ZIP filename.
zipJavaFile = java.io.File('ResultLogs_10_20121012_83207.66.zip');
% Create a Java ZipFile and validate it.
zipFile = org.apache.tools.zip.ZipFile('ResultLogs_10_20121012_83207.66.zip')
% Extract the entries from the ZipFile.
entries = zipFile.getEntries

% Initialize the file list.
filelist={};

% Loop through the entries and add to the file list.
while entries.hasMoreElements
filelist = cat(1,filelist,char(entries.nextElement));
end
但是怎么复制出来啊?请指教!多谢!

  • 写回答

1条回答

  • tyutlxf 2014-12-09 07:32
    关注

    再循环里加上复制语句,例如:
    copyfile('worker.bat','D:/')

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器