⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 restoredata.asp

📁 大学的综合测评
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<link href="img/Style.css" rel="stylesheet" type="text/css" />
</head>
<!-- #include file="const.asp" -->
<body>
<p>
  <%
if request("action")="Restore" then
	Dbpath=request.form("Dbpath")
	backpath=request.form("backpath")
	if dbpath="" then
		errmsg="<li>请输入您要恢复成的数据库全名。"
		response.Write "<li>请输入您要恢复成的数据库全名"
	else
	Dbpath=server.mappath(Dbpath)
	end if
	backpath=server.mappath(backpath)
	
	Set Fso=server.createobject("scripting.filesystemobject")
	if fso.fileexists(dbpath) then  					
		fso.copyfile Dbpath,Backpath
		errmsg="<li>成功恢复数据!"
		response.Write "<li>成功恢复数据!"
	else
		errmsg="<li>备份目录下并无您的备份文件!"
		response.Write "<li>备份目录下并无您的备份文件!" 
	end if
else
%>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table width="76%" border="0" align="center" cellpadding="3" cellspacing="0"  class="atable1">
  <form action="" name="form1" method="post">
    <tr> 
      <td colspan="2" align="center" height="30" background="image/tablebg.gif">恢复系统数据 </td>
    </tr>
    <tr valign="middle"> 
	  <td><br />
	  &nbsp;&nbsp;<span class="red">恢复数据</span>( 需要FSO支持,FSO相关帮助请看微软网站 )<br />
	  &nbsp;&nbsp;备份数据库路径(相对):
              <input type=text size=40 name=DBpath value="DataBackup\systembackup.asa" class="atable1">
              &nbsp;&nbsp;<br />
  						&nbsp;&nbsp;目标数据库路径(相对):
              <input type=text size=40 name=backpath value="<%=dbph%>" class="atable1">
              <br />
              &nbsp;&nbsp;填写您当前使用的数据库路径,如不想覆盖当前文件,可自行命名(注意路径是否正确),然<br />
&nbsp;        后修改lib/conn.asp文件,如果目标文件名和当前使用数据库名一致的话,不需修改conn.asp文件<br />
						&nbsp;&nbsp;
              <input type=submit value="恢复数据" class="atable1">
               <br />
  						-----------------------------------------------------------------------------------------<br />
              &nbsp;&nbsp;在上面填写本程序的数据库路径全名,本程序的默认备份数据库文件为DataBackup\systembackup.asa,请按照您的备份文件自行修改。<br />
  						&nbsp;&nbsp;您可以用这个功能来备份您的法规数据,以保证您的数据安全!<br />
  						&nbsp;&nbsp;注意:所有路径都是相对与程序空间根目录的相对路径	  </td>
	</tr>
	<input type="hidden" name="action" value="Restore">
  </form>
</table>
<%end if%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -