?? backup.asp
字號(hào):
<%
if session("username")="" then
%>
<script language="javascript">
top.location.href="../login.asp"
</script>
<%
response.end
end if
%>
<!-- #include file="../conn2.asp" -->
<!-- #include file="../const.asp" -->
<!-- #include file="../inc/md5.asp" -->
<html>
<head>
<title><%=dianming%> - 數(shù)據(jù)庫(kù)備份</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style2.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY>
<%
if fla5="0" then
%>
<br><center><font color="#FF0000">你不具備此權(quán)限,請(qǐng)與管理員聯(lián)系!</font></center>
<%
response.end
end if
%>
<%if request("hid1")="" then%>
<form name="form1">
<table width="98%" border="0" cellpadding="0" cellspacing="2" align="center">
<tr>
<td height="21"> <img src="../Images/ico/ico00.gif" width="32" height="32" hspace="2" vspace="2" align="absmiddle"><font size="+1"><strong> 數(shù)據(jù)庫(kù)備份</strong></font></td>
</tr>
</table>
<table width="98%" border="0" cellspacing="1" cellpadding="2" align="center" class="TableMenu">
<tr class="a1" style="color:#ffffff;font-size:12px;">
<th height="30" style="color:#ffffff;font-size:14px" colspan="2"><img src="../images/add.gif" border="0" hspace="2" align="absmiddle">數(shù)據(jù)庫(kù)備份</th>
</tr>
<tr bgcolor="#ececec">
<td align="center">
<input type="submit" value=" 確認(rèn)備份 ">
<input type="hidden" name="hid1" value="ok"></td>
</tr>
</table>
</form>
<%
else
dbpath=server.mappath("../data/avonjxc.mdb")
dbpath2=server.mappath("../backup/avonjxc.mdb")
Set Fso=server.createobject("scripting.filesystemobject")
if fso.fileexists(dbpath) then
fso.copyfile dbpath,dbpath2
Else
response.write "找不到您所需要備份的文件。"
End if
%>
<script language="javascript">
alert("備份數(shù)據(jù)庫(kù)成功!")
window.location.href="backup.asp"
</script>
<%
end if
%>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -