Code: Select all
"Extract Zip to Temp"
// check extension
if (<curext> LikeI "zip") {
// let user abort on "large" files (2mb here)
if (<cursize> > 2*1024*1024) {
msg "Zip file is larger than 2 MB.<br><br>Are you sure you want to extract?", 1
}
// create a (relatively) unique temp folder name
set $p, "%tmp%\<curname>_<date yyyymmddhhnnss>_" . rand(0,65536);
set $z, "<curitem>";
// create temp folder and unzip file there
new "$p", dir;
goto $p;
run "unzip -qq $z"
}
XYplorer Beta Club