ASP 는 서버 에서 RAR 파일 을 자동 으로 압축 해제 합 니 다.

<%dim ylj,ywj,Mlpath,Shell,rarcomm,RetCode,cmd,comm,fsoMlpath="E:\page\mian\"    'RAR.EXE 와 CMD.EXE 를 저장 하 는 경로 ylj=Server.mappath("mian")&"\"  '파일 압축 해제 후 놓 을 경로 ywj=Server.mappath("mian\\apathy.rar")  '압축 을 풀 RAR 파일 Set Shell=Server.CreateObject("WScript.Shell")rarcomm="E:\page\\mian\cmd.exe/c"&Mlpath&"rar.exe x-t-o+-p-"cmd=rarcomm&ywj&"&yljRetCode=Shell.Run(cmd,1,True)%>   Server.CreateObject("WScript.Shell")로 CMD.EXE 를 실행 하여 RAR 파일 의 압축 을 풀 었 습 니 다.

좋은 웹페이지 즐겨찾기