View Full Version : copy file from server to server

08-07-2002, 08:07 PM
I can copy a file on the server with fso but how do you copy the

file from one server to another. If I use:

fso.CopyFile "C:\Temp\Test.txt","C:\Temp\Test2.txt"

It is fine but when I try to go from one server to another on the

network like this:

fso.CopyFile "\\ServerA\Temp\Test.txt","\\ServerB\Temp\Test2.txt"

I have poblems.

Thank you

08-08-2002, 12:42 AM
What kind of problems are you having?

Does the server your application resides on have an ODBC connection to the other machine?

08-08-2002, 04:22 AM
does it require ODBC?

landon11, you have to make sure the Temp folder in ServerA is shared and the Web server has access to it, and Temp folder in ServerB is also shared and the Web server has write permission to it.

08-08-2002, 03:12 PM
Thank you both,

Yeah, I don't think I will be able to do this because isuser will not

be able to have those kind of permisions.