Unzip a file with batch & Jscript hybrid using common variables

余生颓废 提交于 2019-12-08 00:07:00

问题


This thread shows the batch & VBS hybrid code used to unzip a ZIP archive file. Can a similar short batch & Jscript hybrid code be written, and how batch variables will be referenced in the Jscript block?

Would the similar batch & wsf hybrid structure be applicable like in the referenced thread, or a different approach?

<!-- : Begin batch script
@echo off
set "dir=%TEMP%\Unzip" & set "file=%USERPROFILE%\Downloads\archive.zip\"
cscript //nologo "%~f0?.wsf" "%dir%" "%file%"
exit /b

----- Begin wsf script --->
<job><script language="JScript">

来源:https://stackoverflow.com/questions/38612727/unzip-a-file-with-batch-jscript-hybrid-using-common-variables

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!