I am downloading a file and then trying to extract it. The download is working (the file is there), but the extract is not. Any help would be greatly appreciated.
The “extract” command only works with files compressed with BigFix tools (like the software distribution wizard)… Here is a way to extract zip files using publicly available tools (visit http://www.info-zip.org/ to see more about this unzip project):
// download your extractor
download http://software.bigfix.com/download/redist/unzip-5.52.exe
continue if {(size of it = 167936 and sha1 of it = “e1652b058195db3f5f754b7ab430652ae04a50b8”) of file “unzip-5.52.exe” of folder “__download”}
// run extractor
waithidden"{pathname of client folder of current site & “__download\unzip-5.52.exe”}" -o -j “{pathname of client folder of current site & “__download\lpt793.zip”}” -d “C:\somefolder”
I tried the // run extractor command which is working on fixlet debugger; but when putting it inside a fixlet acion script, i can’t find extracted files in the “C:\somefolder” i guess this is the path to the requested folder path where the file should be extracted, no?
I wouldn’t use WinRAR since it is not freeware. I personally use 7za, which is the command line version of 7zip. I prefetch it to the machine and add it as a “utility” so it never has to be downloaded again. The command line was a little tricky, so here is an example:
That command line will work with any format that 7z and Zip formats, but I prefer to use 7z as it compresses a bit better. The files will be extracted into the “__Download” folder, so you can then you can run an installer or do whatever you want to do with them.
Did you have a .html file open as well when it wasn’t working? The extract panel won’t activate until you have a document open to extract to. try to use 7zipguides.