?? restoredata.asp
字號(hào):
<!--#include file="head.asp" -->
<%
if request("action")="Restore" then
Dbpath=request.form("Dbpath")
backpath=request.form("backpath")
if dbpath="" then
response.write "請(qǐng)輸入您要恢復(fù)成的數(shù)據(jù)庫(kù)全名"
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 "成功恢復(fù)數(shù)據(jù)!"
else
response.write "備份目錄下并無(wú)您的備份文件!"
end if
else
%>
<table width=100% cellspacing=0 cellpadding=0>
<tr>
<td height=25 > <B>恢復(fù)數(shù)據(jù)</B>( 需要FSO支持,F(xiàn)SO相關(guān)幫助請(qǐng)看微軟網(wǎng)站 ) </td>
</tr>
<form method="post" action="RestoreData.asp?action=Restore">
<tr>
<td height=100 >
備份數(shù)據(jù)庫(kù)路徑(相對(duì)):
<input type=text size=30 name=DBpath value="DataBackup\article.mdb" class="smallInput">
<BR>
目標(biāo)數(shù)據(jù)庫(kù)路徑(相對(duì)):
<input type=text size=30 name=backpath value="<%=db%>" class="smallInput">
<BR> 填寫您當(dāng)前使用的數(shù)據(jù)庫(kù)路徑,如不想覆蓋當(dāng)前文件,可自行命名(注意路徑是否正確),然后修改conn.asp文件,如果目標(biāo)文件名和當(dāng)前使用數(shù)據(jù)庫(kù)名一致的話,不需修改conn.asp文件<BR>
<input type=submit value="恢復(fù)數(shù)據(jù)" class="buttonface">
<br>
-----------------------------------------------------------------------------------------<br>
在上面填寫本程序的數(shù)據(jù)庫(kù)路徑全名,本程序的默認(rèn)備份數(shù)據(jù)庫(kù)文件為DataBackup\article.mdb,請(qǐng)按照您的備份文件自行修改。<br>
您可以用這個(gè)功能來(lái)備份您的法規(guī)數(shù)據(jù),以保證您的數(shù)據(jù)安全!<br>
注意:所有路徑都是相對(duì)與程序空間根目錄的相對(duì)路徑
</td>
</tr>
</form>
</table>
<%end if%>
<!--#include file="copy.asp" -->
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -