Hi!
I want to copy files between 2 servers.For this,I chose to use the MoveFile method.The problem is I'm getting the following error:
Microsoft VBScript runtime
error '800a0035' File not found Here's my code:
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
If fs.FileExists(Server.MapPath("upload\tmb2.xls"))Then
Response.Write"File exists!"
Else
Response.Write"File doesn't exist!"
End If
'Response.Write(Server.MapPath("upload/tmb2.xls"))
If fs.FileExists("\\tmav035a\Test\AssetDB_test\tmb24.xls") Then
Response.Write "File exists!"
Else
Response.Write "File does not exist!"
End If
fs.MoveFile Server.MapPath("upload/tmb2.xls"), "\\tmav035a\Test\AssetDB_test"
set fs=nothing
%>
It appears that the first file exists and the 2nd file doesn't exists.
I want to use this code in an application where the users are identified by the windows account(so no need for user name and password).
Am I doing something wrong?
<message edited by b00gieman on Monday, August 27, 2007 7:06 PM>