Copying files from the server to the PC

Discussion in 'ASP General' started by JimmySlam, Feb 20, 2006.

  1. JimmySlam

    JimmySlam Guest

    Hi how do i copy a file from the server to the PC?

    I have this code but it says that type mismatch 'CopyFile'


    <%

    Const ForWriting=2
    strPath = Server.MapPath("datos.xml")
    Set fso = Server.CreateObject("Scripting.FileSystemObject")
    Set oFile = fso.GetFile(strPath)
    Set tso = oFile.OpenAsTextStream(ForWriting)

    sob=1
    CopyFile "datos.xml", file://c:/datos.xml, sob
    %>


    Thanks
     
    JimmySlam, Feb 20, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    499
  2. SagharAyyaz
    Replies:
    1
    Views:
    489
    Jonathan Mcdougall
    May 9, 2006
  3. Sarah

    Copying Files From Server to Server

    Sarah, Nov 13, 2004, in forum: ASP General
    Replies:
    1
    Views:
    107
    Ray Costanzo [MVP]
    Nov 15, 2004
  4. cocoin

    copying files from web to server

    cocoin, Feb 12, 2005, in forum: ASP General
    Replies:
    2
    Views:
    98
    Evertjan.
    Feb 12, 2005
  5. Shawn Mcclain
    Replies:
    0
    Views:
    186
    Shawn Mcclain
    Sep 28, 2007
Loading...

Share This Page