<%
'以下是ASP自动解压Rar文件代码:
dim ylj,ywj,Mlpath,Shell,rarcomm,RetCode,cmd,comm,fso
Mlpath="F:\EIPWEB\WinRAR\" '存放RAR.EXE和CMD.EXE的路径
ylj=Server.mappath("SkinEip")&"\" '解压文件后所放的路径
ywj=Server.mappath("SkinEip\ABC.rar") '要解压的RAR文件
Set Shell = Server.CreateObject("WScript.Shell")
rarcomm= "cmd.exe /c "&Mlpath&"Rar.exe x -t -o+ -p- "
response.write rarcomm
cmd=rarcomm&ywj&" "&ylj
RetCode = Shell.Run(cmd,1, True)
%>