コードコピーは次のとおりです。
Tempsource、Tempendは絶対パスを使用する必要があります
rootpath = request.servervariables( "appl_physical_path") '現在のプログラムの絶対パスを取得します
functionCopyFiles(Tempsource、Tempend)
dimfso
setFSO = server.createObject( "Scripting.filesystemObject")
iffso.fileexists(tempend)then
Response.Write「ターゲットバックアップファイル<b>」&Tempend& "</b>は既に存在します。最初に削除してください!"
setfso =何もない
exitFunction
endif
iffso.fileexists(tempsource)then
それ以外
response.write「コピーされるソースデータベースファイル」&tempsource& "</b>は存在しません!"
setfso =何もない
exitFunction
endif
fso.copyfiletempsource、tempend
response.write "は<b>"&tempsource& "</b> to <b>"&tempend& "</b>をコピーしました。
setfso =何もない
エンド機能