Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to use VB.NET ASP as an interface for copying documents from a server to another server

How to use VB.NET ASP as an interface for copying documents from a server to another server

Scheduled Pinned Locked Moved ASP.NET
csharpsysadmintutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AndyASPVB
    wrote on last edited by
    #1

    Hi I am not sure whether I am posting this in the right place, but I would like to know how I can use VB.Net ASP as an interface to copy word and WAV files from a folder on one server to a folder on another server. Does anyone know how to do this? Thanks

    C R 2 Replies Last reply
    0
    • A AndyASPVB

      Hi I am not sure whether I am posting this in the right place, but I would like to know how I can use VB.Net ASP as an interface to copy word and WAV files from a folder on one server to a folder on another server. Does anyone know how to do this? Thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      AndyASPVB wrote:

      VB.Net ASP

      No such thing. VB.NET does ASP.NET, for which this is the forum. ASP is VBScript.

      AndyASPVB wrote:

      o copy word and WAV files from a folder on one server to a folder on another server.

      Well, that depends. If the server you're copying to is the server hosting the website, then you *could* do it that way, pretty easily.

      Christian Graus Driven to the arms of OSX by Vista.

      1 Reply Last reply
      0
      • A AndyASPVB

        Hi I am not sure whether I am posting this in the right place, but I would like to know how I can use VB.Net ASP as an interface to copy word and WAV files from a folder on one server to a folder on another server. Does anyone know how to do this? Thanks

        R Offline
        R Offline
        Ranjit Viswakumar
        wrote on last edited by
        #3

        There are two scenarios. If the source and destination server are in the same domain, you can use a UNC path to the new server with a regular File.Copy method- http://msdn.microsoft.com/en-us/library/system.io.file.copy(VS.80).aspx[^] If the destination server is not in the same domain, we have to get a little more creative. We can use the FTP or HTTP protocol to do this via the web. Check these out- FTP http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest(VS.80).aspx[^] HTTP http://msdn.microsoft.com/en-us/library/system.net.webclient(VS.80).aspx[^] Try these out. Good luck!

        Ranjit Viswakumar Professional Services Specialist http://hostmysite.com/?utm\_source=bb

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups