用于脚本编写的跨平台 ZIP 实用程序
背景:我正在编写一个脚本来将一些文件收集到 zip 文件中。该脚本可能在多种操作系统中使用。问题是我不知道他们(操作系统)支持什么? Linux 有一个内置的 ZIP(在大多数发行版上)。从这个角度来看,Windows 有点混乱。由于操作系统不信任 zip 命令
有两个问题: 1) 我正在寻找一个 ZIP 实用程序作为我的脚本的主要内容,而不实际实现我自己的 zip。具有统一命令行风格的东西。 (也许是基于 Java 的?)如果您了解其中之一,它将对我完成任务有很大帮助。
2) 现在我正在为我的 Windows 机器使用一些 Oracle 客户端 zip.exe 来测试我的脚本。我注意到我没有看到新创建的存档中的文件。浏览网络告诉我,这与Windows“盲目”有关。最好是任何实用程序都可以解决这个问题。关于为什么会发生这种情况有什么想法吗?
Background: I'm writing a script to collect some files in to a zip file. This script might be used in several operation system. The issue is that I don't what do they(the OS's) support? Linux has a build-in ZIP (on most distributions). Windows is a bit of a mess in this perspective. Since the zip command is not distrusted with the OS
Two issues:
1) I'm looking for a ZIP utility to be my scripts meat and bones, without actually implementing my own zip. Something with a unified command line style. (Java based perhaps?) If you know one, it will help me a lot to complete my task.
2) Right now I'm using some oracle client zip.exe for my windows machine to test my script. I've notice that I don't see the files inside of my newly created archive. Browsing around the web tells me that this has to do with windows being "blind". Preferably, any utility will solve that. Any ideas on why does this happen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 中,我用 Java 编写了一个执行压缩操作的小程序。我会发布代码,但它是闭源的。由于我的系统中假定了 java 并结合了强大的 zip 功能,因此它是解决方案。
In the and I wrote a litle program in Java that does the ziping. I would publish the code but it's closed source. Since java was assumed in my system combined with the strong zip power it was the solution.