📄 backup.asp
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>备份数据库</title>
<link rel="stylesheet" type="text/css" href="images/test.css">
</head>
<body>
<center>
<table border="0" cellpadding="0" cellspacing="0" width="760">
<tr>
<td colspan=3 height=10></td>
</tr>
<tr>
<td width=600 valign=top align=center>
<table width=600 cellspacing=1 cellpadding=0 bgcolor=#000000>
<tr>
<td height=25 bgcolor=#b4c0cf>
备份论坛数据 |
</td>
</tr>
<%
dim method
method=request.querystring("method")
if method="" then
%>
<form method="post" action="backup.asp?method=Backup">
<tr>
<td bgcolor=#e1e6ec height=100 class=pbz>
数据库路径(相对):<input type=text size=30 name=DBpath value="hw_data.asp"> <input type=submit value="确定"> | 请注意:本功能需要FSO支持
</td>
</tr>
</form>
<%
elseif method="Backup" then
Dbpath=request.form("Dbpath")
Dbpath=server.mappath(Dbpath)
Set Fso=server.createobject("scripting.filesystemobject")
if fso.fileexists(dbpath) then
fso.copyfile dbpath,left(dbpath,instrrev(dbpath,"\"))&"DataBackup\abcdefgxiuyabcdefg.asp"
response.write "<tr><td bgcolor=#e1e6ec height=25><li>成功备份数据</td></tr>"
else
response.write "<tr><td bgcolor=#e1e6ec height=25><li>找不到您所需要备份的文件</td></tr>"
end if
%>
<%end if%>
</table>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -