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

📄 restore.asp

📁 非常有商业价值的软件
💻 ASP
字号:
<!--#include file="chk.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
%>
<html><head><title>数据恢复</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="style.css" rel=stylesheet type=text/css>
</head>
<body>

		 			<div align="center">

		 			<table width=760 cellspacing=1 style="border-collapse: collapse" border="1" bordercolor="#CCCCCC">		  							  				
  				<tr>
  					
          <td height=25 bgcolor="#F7F7F7" ><B>恢复数据</B>( 需要FSO支持,FSO相关帮助请看微软网站 ) </td>
  				</tr>
  				<form method="post" action="restore.asp?action=Restore">
  				<tr>
  					<td height=100 bgcolor="#F7F7F7" >
  						备份数据库路径(相对):
              
        <input type=text size=30 name=DBpath value="../jj_Databackup/byec_shop.mdb">
              &nbsp;&nbsp;<BR>
  						目标数据库路径(相对):
              
        <input type=text size=30 name=backpath value="../byfenglan#/byfenglanAC.mdb">
              <BR>填写您当前使用的数据库路径,如不想覆盖当前文件,可自行命名(注意路径是否正确),然后修改数据库连接文件,如果目标文件名和当&nbsp;前使用数据库名一致的话,不需修改
						数据库连接文件<BR>
              <input type=submit value="恢复数据">
               <br>-----------------------------------------------------------------------------------------------------------------------------<br>
在上面填写本程序的数据库路径全名,本程序的默认备份数据库文件为jj_Databackup\byec_shop.mdb,请按照您的备份文件自行修改。<br>
您可以用这个功能来备份您的法规数据,以保证您的数据安全!<br>
						<font color="#FF0000">注意:所有路径都是相对与程序空间根目录的相对路径</font>
  					</td>
  				</tr>	
  				</form>
  			</table>
					</div>
<%end if%>
</body>
</html>

⌨️ 快捷键说明

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