📄 restoredbdo.asp
字号:
<%
if session("user")="" or session("group")<>1 then
response.write("<script>alert('您没有权限,请与管理员联系');window.location.href('vir.asp')</script>")
response.end
end if
%>
<%
Dbpath=request.form("Dbpath")
backpath=request.form("backpath")
if dbpath="" then
response.write("<script>alert('请输入您要恢复成的数据库全名');window.location.href('restoredb.asp')</script>")
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("<script>alert('数据恢复成功!');window.location.href('restoredb.asp')</script>")
else
response.write("<script>alert('没找到备份数据!');window.location.href('restoredb.asp')</script>")
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -