时间: 2021-07-31 作者:daque
<%'开始要贬低欣赏器安定级别'csdb文献夹中包括cmd.exe rar.exe 要解收缩的文献(*.rar) 解收缩后的寄存目次为csdbon error resume nextunzip_path=server.mappath("csdb")&"\"set wshshell = server.createobject("wscript.shell")issuccess = wshshell.run ("winrar x -r -o+ "&unzip_path&"*.rar "&unzip_path&"",1, false)'winrar <吩咐> -<电门1> -<电门n> <收缩文献> <文献...> <@列表文献...> <解压路途\>'吩咐: x - 从收缩文献中全路途解压文献'电门: -r - 偕同子文献夹'电门: -o+ - 掩盖仍旧生存的文献'电门: -o- - 不掩盖仍旧生存的文献if issuccess = 0 thenresponse.write " 吩咐胜利实行!"elseresponse.write " 吩咐实行波折!权力不够大概该步调没辙在dos状况下运转"end ifif err.number <> 0 thenresponse.write "<p>缺点号子:" & err.numberresponse.write "<p>因为:" & err.description response.write "<p>缺点根源:" & err.sourceresponse.write end if%>