使用批处理和解压缩解压缩文件Jscript混合使用常见变量

时间:2016-07-27 12:17:07

标签: batch-file jscript hybrid

This thread显示批次& VBS混合代码用于解压缩ZIP存档文件。可以类似的短批次&编写Jscript混合代码,以及如何在Jscript块中引用批处理变量?

同类批次& wsf混合结构是否适用于引用的线程或不同的方法?

<?php
$zip = new ZipArchive;
$download = 'FileName.zip';
$zip->open($download, ZipArchive::CREATE);
foreach (glob("*.jpg") as $file) { /* Add appropriate path to read content of zip */
    $zip->addFile($file);
}
$zip->close();
header('Content-Type: application/zip');
header("Content-Disposition: attachment; filename = $download");
header('Content-Length: ' . filesize($download));
header("Location: $download");
?>

0 个答案:

没有答案