ASP Forum
Movefile error
b00gieman | Posted 2:08am 7. September 2007 Server Time |

Hello!
I want to copy files between 2 servers,in an asp application.I'm using the MoveFile method.My page looks like this:

<%
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    
    
    If fs.FileExists("\\tmav035a\Test\AssetDB_test\tmb22.xls") Then
       Response.Write "File exists!"
     Else
       Response.Write "File doesn't exist!"
      End If
      
     fs.MoveFile Server.MapPath("upload/tmb2.xls"), "\\tmav035a\Test\AssetDB_test\tmb456.xls"

   set fs=nothing
%>

However,I get the following error:

Microsoft VBScript runtime error '800a0035'

File not found

Has anyone any idea on how can I solve this problem?

Thanks!



Reply to Post Movefile error



Back to Forum Page