I've got a zip file (actually it's a exe file, but that's not the problem) containing two directories (each with files and subdirectories etc.), and I want to extract the content of one of these directories to a defined target directory:
What I do is:
7z.exe x -o"%Python27Path32Bit%\Lib\site-packages" -i"!PLATLIB" "%SourcePath%\pywin32-218.win32-py2.7.exe"
"%Python27Path32Bit%\Lib\site-packages" is the destination directory,
"PLATLIB" is the directory (inside the zip file) I want to extract and
"%SourcePath%\pywin32-218.win32-py2.7.exe" is the zip file.
This works so far, but the directory "PLATLIB" is extracted to "...\site-packages\".
What I want is the content of directory "PLATLIB" beeing extracted to "...\site\packages".
In other words:
The zip file (exe file) contains:
... but I get:
I also tried adding "\*" after directory name:
7z.exe x -o"%Python27Path32Bit%\Lib\site-packages" -i"!PLATLIB\*" "%SourcePath%\pywin32-218.win32-py2.7.exe"
... but this didn't make any difference.
What can I do to not extract the directory "PLATLIB" but only its content?
There is no such feature still.
Oh. That's a pity. So I'll have to extract my data to another directory and then move it to where it belongs. That's not really smart, but it will work.
Tanks for your reply!
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.