Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 7z 压缩目录,所以我这样做了
C:/7z a -tzip mydirectory/testing.zip mydirectory/testing -o* -r
输出的zip文件对整个目录结构路径的内容有问题
mydirectory/testing/....
但我希望压缩测试中的文件,并且上面没有任何路径反映在其中。
将目录更改为mydirectory/testingfirst 并用于*获取所有文件。
mydirectory/testing
*
cd mydirectory\testing C:\7z.exe a -tzip ../testing.zip * -r