Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    copy file from server to server

    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
    USA

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What kind of problems are you having?

    Does the server your application resides on have an ODBC connection to the other machine?
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,965
    Thanks
    0
    Thanked 236 Times in 233 Posts
    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.

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    USA


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •