简体   繁体   English

从 zip 文件中指定一个 dir 子目录,而无需在 Windows CMD 中解压缩

[英]Specify a dir subdirectory from within a zip file without extracting in Windows CMD

If i am running a program (in this case arelle ) from the GUI and if i want to open a zip that contains a subdirectory with subfolders the program opens a userform after i choose the zip file prompting me to choose a subfolder from inside the zip.如果我正在从 GUI 运行一个程序(在这种情况下是arelle ),并且如果我想打开一个包含子目录和子文件夹的 zip 程序在我选择 zip 文件后打开一个用户表单,提示我从 zip 中选择一个子文件夹.

You can see what i mean below...你可以在下面看到我的意思......

At first we choose a zip folder for our program to parse首先我们选择一个zip文件夹供我们的程序解析

在此处输入图片说明

And here we have the userform with the subdirectory where we can choose a folder from inside the zip在这里,我们有一个带有子目录的用户表单,我们可以在其中从 zip 中选择一个文件夹在此处输入图片说明

When i want to run the same program from the cmd how can i choose a subfolder from the subdirectory?当我想cmd运行相同的程序时,如何从子目录中选择一个子文件夹?

Here is the command that i use to parse the zip when running from source.这是我在从源代码运行时用来解析 zip 的命令。 However it throws an error due to the existence of a subdirectory inside the zip.但是,由于 zip 中存在子目录,它会引发错误。 What can i do to choose as i choose when i used the GUI edition of the program?当我使用程序的 GUI 版本时,我可以做些什么来选择?

C:\>python arelleCmdLine.py -f C:\Python33\sec\2010\03\0000002809-0001047469-10-
002778-xbrl.zip

All that needs to be done is this:所有需要做的是:

INITIAL PARADIGM CHOOSING A WHOLE BLOCK OF ZIP FILE WITH SUBFOLDERS IN IT'S DIR

C:\>python arelleCmdLine.py -f C:\Python33\sec\2010\03\0000002809-0001047469-10-
002778-xbrl.zip

SPECIFY A DIR SUBDIRECTORY FROM WITHIN A ZIP FILE WITHOUT EXTRACTING

If inside the zip file we have 1.xml all you need to do is just:如果在 zip 文件中我们有1.xml你需要做的就是:

C:\>python arelleCmdLine.py -f C:\Python33\sec\2010\03\0000002809-0001047469-10-
    002778-xbrl.zip/1.xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM