...

View Full Version : copy file from server to server



landon11
08-07-2002, 07: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:

<code>
fso.CopyFile "C:\Temp\Test.txt","C:\Temp\Test2.txt"
</code>

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

network like this:

<code>
fso.CopyFile "\\ServerA\Temp\Test.txt","\\ServerB\Temp\Test2.txt"
</code>

I have poblems.

Thank you

whammy
08-07-2002, 11:42 PM
What kind of problems are you having?

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

glenngv
08-08-2002, 03: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.

landon11
08-08-2002, 02: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.

Thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum