📄 restore.asp
字号:
<!--#include file="../manage/check-4.asp"-->
<%
if request("action")="Restore" then
Dbpath=request.form("Dbpath")
backpath=request.form("backpath")
if dbpath="" then
response.write "请输入您要恢复成的数据库全名"
else
Dbpath=server.mappath(Dbpath)
end if
backpath=server.mappath(backpath)
'Response.write Backpath
Set Fso=server.createobject("scripting.filesystemobject")
if fso.fileexists(dbpath) then
fso.copyfile Dbpath,Backpath
response.write "成功恢复数据!"
else
response.write "备份目录下并无您的备份文件!"
end if
else
%>
<link href="../conn/css.css" rel="stylesheet" type="text/css">
<table width=100% cellspacing=0 cellpadding=0>
<tr>
<td height=25 > <B>恢复数据</B>( 需要FSO支持,FSO相关帮助请看微软网站 ) </td>
</tr>
<form method="post" action="restore.asp?action=Restore">
<tr>
<td height=100 >
备份数据库路径(相对):
<input type=text size=30 name=DBpath value="backup/sia-cart.asp" class="textbox">
<BR>
目标数据库路径(相对):
<input type=text size=30 name=backpath value="../backup/sia-cart.asp" class="textbox">
<BR> 填写您当前使用的数据库路径,如不想覆盖当前文件,可自行命名(注意路径是否正确),然后修改conn.asp文件,如果目标文件名和当前使用数据库名一致的话,不需修改conn.asp文件<BR>
<input type=submit value="恢复数据" class="textbox-1">
<br>
-----------------------------------------------------------------------------------------<br>
在上面填写本程序的数据库路径全名,本程序的默认备份数据库文件为Backup\sia-cart.mdb,请按照您的备份文件自行修改。<br>
您可以用这个功能来备份您的法规数据,以保证您的数据安全!<br>
注意:所有路径都是相对与程序空间根目录的相对路径
</td>
</tr>
</form>
</table>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -