How to use VB.NET ASP as an interface for copying documents from a server to another server
-
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
-
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
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.
-
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
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