Extracting a zip file to its own folder
Re: Extracting a zip file to its own folder
Sammay - I do get a text box which says ks.dat<crlf>zipfile.zip, therefore everything works as it should
Re: Extracting a zip file to its own folder
Once again, you have explained exactly how and where I want the files in the zip to be placed.Based on the only information you seem willing to provide:That will attempt to extract image1.png and image2.png from the archive C:\2\5.zip to the target path D:\2. Assuming those files are within that archive this should create D:\2\image1.png and D:\2\image2.png. After which zip_extract will return D:\2 which is then displayed by the text dialog.Code: Select all
text zip_extract("C:\2\5.zip","D:\2","image1.png|image2.png");
I have successfully extracted the zip file using the XY default extract methods, there is nothing wrong with the zip file. Running the zip_extract() command does not extract the specific files I request out of the zip file.
Re: Extracting a zip file to its own folder
Come on, since the script I posted works all right, there's certainly something wrong about your usage of zip_extract().CookieMonster wrote:Running the zip_extract() command does not extract the specific files I request out of the zip file
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Extracting a zip file to its own folder
Running zip_extract() cannot read your mind so it just extracts all items from "the selected archive into an auto-named folder in the current path."CookieMonster wrote:Running the zip_extract() command does not extract the specific files I request out of the zip file.
Try passing the correct arguments to zip_extract.
Re: Extracting a zip file to its own folder
I dont know if this will help because I did not read the whole post as I need to leave soon but ...
back in the day before XY had zip support I used this script
This script runs the 7zip extractor in my portable apps directory. I triggered this with the following:
this is a custom file association.
So basically I download a zip file then double click it. The custom file association reads the extension, then executes the 7z.xys ) the first code block). The xys script runs 7zip which extracts the file into a new subfolder, in the same directory as the zip file, named the same as the zip file. Very quick and I have never had any issues.
This will only do one file at a time but it worked for me. You can modify it to accept more that one file and add more extensions to the association but here is what I have, Enjoy.
back in the day before XY had zip support I used this script
Code: Select all
run """<xydrive>\PApps\7-Zip\7z.exe"" x ""<curitem>"" -o*""", , ,0
Code: Select all
"7Zip" 7z;zip;gzip;gz;tgz;tar;rar;cab;arj;rpm;deb;bz2>::load "<xydata>\scripts\7z.xys"
So basically I download a zip file then double click it. The custom file association reads the extension, then executes the 7z.xys ) the first code block). The xys script runs 7zip which extracts the file into a new subfolder, in the same directory as the zip file, named the same as the zip file. Very quick and I have never had any issues.
This will only do one file at a time but it worked for me. You can modify it to accept more that one file and add more extensions to the association but here is what I have, Enjoy.
Re: Extracting a zip file to its own folder
So, what was the solution?
[AHK] redirecting Windows Explorer to XY, [XYS] Mini Tree with open tabs (cur loc expanded, tab folders highlighted), [AHK] customInlineRenameKeys, [AHK] clipboardHelper_and_XYEscToList