国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
asp實(shí)現(xiàn)rar壓縮和解壓縮源代碼

asp實(shí)現(xiàn)rar壓縮和解壓縮源代碼

站長交易(http://jy.chinaz.com)幫站長賺錢 虛擬主機(jī)評測+IDC導(dǎo)航=IDC123.COM

asp實(shí)現(xiàn)rar壓縮和解壓縮源代碼,只要一個文件就可能搞定,asp壓縮目錄或文件,解壓rar文件,刪除特定文件等功能.此源碼方便大家進(jìn)行二次開發(fā),分享出來.

以下是winrar.asp代碼:

以下為引用的內(nèi)容:

<!--
Name -阿言在線winrar插件 
copyright -北國藥苑BBS(www.spubbs.com)
created - 2006/5/17
author - 阿言:tqsir@hotmail.com QQ:12895551
-->
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<title>歡迎使用阿言在線winrar插件</title>
<body>
<TABLE border=0 width=80% align=center cellspacing=1 cellpadding=3 style="FONT-FAMILY: Verdana;font-size:14px;BORDER: #000000 1px solid;background-color:#f7f7f7">
<tr>
<th width="100%" height="24" bgcolor="#e4e4e4"><strong><font color="#FF0000">阿言在線winrar插件</font></strong>最新更新時間2006.5.17 [<a target=_blank>支持頁面</a>]
</th>
</tr>
<tr>
  <td>
<%
Server.ScriptTimeout=99999
Dim winrar,cmddir
Winrar="C:\Program Files\WinRAR\Winrar.exe" ’Winrar.exe的路徑Progra~1。
cmddir="%windir%\system32\cmd.exe" ’cmd.exe的路徑
user="spubbs.com"’用戶名
pwd="spubbs.com"’登陸、壓縮、解壓縮密碼,出于安全考慮,請將此密碼設(shè)置足夠強(qiáng)壯
if request.Form("user")=user and request.Form("pwd")=pwd then
response.write "本文件夾路徑:"&Server.Mappath(".")&"<br>"
from=request.Form("from")
where=request.Form("where")
if from<>"" and where<>"" then
  Dim a,b,Shell,Runing,Runcode,Cmd 
  if instr(where,":")=0 then a=Server.mappath(""&where&"") else a=where
  if instr(from,":")=0 then b=Server.mappath(""&from&"") else b=from
  ’response.Write b
  if right(b,1)<>"\" and left(right(b,4),1)<>"." then b=b&".rar"
  On Error Resume Next 
  Set Shell = Server.CreateObject("WScript.Shell")
  if  request.QueryString("action")=1 then ’解壓縮
  if not ReportFileStatus(b)then Response.Write(b&"不存在!"):Response.End()
  Runing= cmddir&" /c """&winrar&""" x -ibck -t -y -o+ -p"&pwd&" " ’設(shè)置運(yùn)行解壓縮的命令。
  Cmd=Runing&b&" "&a&"\" 
  elseif request.QueryString("action")=0 then ’壓縮
  if (not ReportFileStatus(a)) and (not ReportFolderStatus(a)) then Response.Write(a&"不存在!"):Response.End()
  Cmd= cmddir&" /c del /f /q "&b
  Runcode = Shell.Run(Cmd,1,True)
  Runing= cmddir&" /c """&winrar&""" a -ibck -y -ep -o+ -p"&pwd&" " ’壓縮。
  Cmd=Runing&b&" "&a
  else  ’刪除文件 
  Cmd= cmddir&" /c del /f /q "&b
  end if
  Runcode = Shell.Run(Cmd,1,True)
  Runing = Shell.Run(cmddir&" /c taskkill /im winrar.exe",1,false)
  Runing = Shell.Run(cmddir&" /c exit",1,false)
  Set Shell=nothing 
  ErrInfo
%> 
<%else%>
<form name="frm" method="post" action="?action=1" style="BORDER: #d9d9d9 1px solid;background-color:#f7f7f7">
--------------------------------------<strong>解壓縮</strong>---------------------------------------
<br>
<br>
請輸入rar文件地址:
<input name="from" value="1.rar" size="50"><br>
解壓到:<input  name="where" value="." size="50">
文件夾請使用絕對路徑且在最后加“\” <br>
<br>
<input name="submit" type="submit" value=" 解 壓 "><input type="hidden" name="user" value="<%=request.Form("user")%>">
<input type="hidden" name="pwd" value="<%=request.Form("pwd")%>"></FORM>
<form name="frm" method="post" action="?action=0" style="BORDER: #d9d9d9 1px solid;background-color:#f7f7f7">
--------------------------------------<strong>壓縮文件</strong>---------------------------------------<br>
<br>
請輸入要壓縮文件地址:
<input  name="where" value="./data/dvbbs7#.mdb" size="50">
文件夾也可<br>
<br>
存放路徑及新文件名:<input name="from" value="../data/1.rar" size="50">
自動覆蓋同名文件<br>
<br>
<input name="submit" type="submit" value=" 壓 縮 "><input type="hidden" name="user" value="<%=request.Form("user")%>">
<input type="hidden" name="pwd" value="<%=request.Form("pwd")%>"></FORM>
<%
ErrInfo
end if
else
login()
end if
Sub ErrInfo
  if not isempty(Runcode) and Runcode=0 Then 
  Response.Write("命令成功執(zhí)行,您提交的命令如下:<br>"& Cmd) 
  elseif not isempty(Runcode) then 
  Response.Write("命令執(zhí)行失?。?quán)限不夠或者該程序無法在DOS狀態(tài)下運(yùn)行,您提交的命令如下:<br>" & Cmd)
  else
  end if
  If Err Then
     Response.Write "<br>"&err.description
  err.Clear
  End If
%>
<form name="frm" method="post" action="?action=2" style="BORDER: #d9d9d9 1px solid;background-color:#f7f7f7">
--------------------------------------<strong>刪除文件</strong>---------------------------------------<br>
<br>
請輸入要刪除文件地址:<input name="from"  size="50" value=<%=from%>>
文件夾請使用絕對路徑且在最后加“\” <br>
<input type="hidden" name="where" value=<%if where<>"" then response.Write where else response.Write "."%>>
<br>
<input name="submit" type="submit" value=" 刪 除 ">
<input type="hidden" name="user" value="<%=request.Form("user")%>">
<input type="hidden" name="pwd" value="<%=request.Form("pwd")%>">
</FORM>
<br>
<%
End Sub
Function ReportFileStatus(filespec) 
  Dim fso
  Set fso = CreateObject("Scripting.FileSystemObject")
  ReportFileStatus=false
  If (fso.FileExists(filespec)) Then  ReportFileStatus = true
  Set fso =nothing
End Function
Function ReportFolderStatus(fldr) 
  Dim fso
  Set fso = CreateObject("Scripting.FileSystemObject")
  ReportFolderStatus=false
  If (fso.FolderExists(fldr)) Then  ReportFolderStatus = true
  Set fso =nothing
End Function
Sub login()
%>
<form name="frm" method="post" action="?action=2" style="BORDER: #d9d9d9 1px solid;background-color:#f7f7f7">
  <p>--------------------------------------<strong>登陸系統(tǒng)</strong>---------------------------------------<br>
    <br>
用戶名:
<input name="user" value="spubbs.com">
  </p>
密 碼:
    <input name="pwd" type="password" id="pwd">  
    <br>
  <br>
  <input name="submit" type="submit" value=" 登陸 ">
</FORM>
<%End sub%>
</td>
</tr>
<tr>
  <td height="22" align="center" bgcolor="#e8e8e8">Powered By :<a href = "mailto:tqsir@hotmail.com">阿言</a>  <a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=12895551&Site=www.spubbs.com在線winrar&Menu=yes><img border=0 SRC=http://wpa.qq.com/pa?p=1:12895551:3 alt=給阿言發(fā)即時消息QQ:12895551 align=absbottom></a>   Copyright &copy;2003 - 2006  <a >北國藥苑BBS</a></td>
</tr>
</table>
</body>

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
菜鳥詳聽ASP中也能解壓縮rar文件
(轉(zhuǎn)) 用 CMD 命令解壓縮文件 rar
WinRAR實(shí)現(xiàn)批量壓縮文件夾
C# rar壓縮 解壓縮 文件
WinRAR .rar文件怎樣加密
win7 64位系統(tǒng)中RAR壓縮文件損壞的完美修復(fù)方法
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服