473,698 Members | 2,521 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Copy files between two web servers..

I posted this on the .asp group but believe this may be a more appropriate
forum.

I have a need to have a web server (windows based) grab files each week from
a linux based server - hosted elsewhere. I cannot use UNC paths.

I want to have a script (.asp/asp.net) on the windows server that I would
provide a list of files to copy. The script would then copy the listed files.

The problem is that the using a filestream and copyto runs into an error
with URI paths.

This will be a substantial amount of data each week. I don't want to copy
it locally and then back up to the windows web server. I want/need the copy
to be directly between the two servers.

Any ideas would be appreciated.
--
Matthew Moran
The IT Career Builder''s Toolkit (Cisco Press)
http://www.cbtoolkit.com

Career Advice for the IT Professional
http://blogs.ittoolbox.com/pm/career
Aug 2 '06 #1
2 4521
WebClient.Downl oadFile.

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

"Matthew Moran" <Ma**********@d iscussions.micr osoft.comwrote in message
news:8C******** *************** ***********@mic rosoft.com...
>I posted this on the .asp group but believe this may be a more appropriate
forum.

I have a need to have a web server (windows based) grab files each week
from
a linux based server - hosted elsewhere. I cannot use UNC paths.

I want to have a script (.asp/asp.net) on the windows server that I would
provide a list of files to copy. The script would then copy the listed
files.

The problem is that the using a filestream and copyto runs into an error
with URI paths.

This will be a substantial amount of data each week. I don't want to copy
it locally and then back up to the windows web server. I want/need the
copy
to be directly between the two servers.

Any ideas would be appreciated.
--
Matthew Moran
The IT Career Builder''s Toolkit (Cisco Press)
http://www.cbtoolkit.com

Career Advice for the IT Professional
http://blogs.ittoolbox.com/pm/career

Aug 2 '06 #2
Perfect. Greatly appreciated it is copying right now!!!

Thanks,
--
Matthew Moran
The IT Career Builder''s Toolkit (Cisco Press)
http://www.cbtoolkit.com

Career Advice for the IT Professional
http://blogs.ittoolbox.com/pm/career
"Greg Young" wrote:
WebClient.Downl oadFile.

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

"Matthew Moran" <Ma**********@d iscussions.micr osoft.comwrote in message
news:8C******** *************** ***********@mic rosoft.com...
I posted this on the .asp group but believe this may be a more appropriate
forum.

I have a need to have a web server (windows based) grab files each week
from
a linux based server - hosted elsewhere. I cannot use UNC paths.

I want to have a script (.asp/asp.net) on the windows server that I would
provide a list of files to copy. The script would then copy the listed
files.

The problem is that the using a filestream and copyto runs into an error
with URI paths.

This will be a substantial amount of data each week. I don't want to copy
it locally and then back up to the windows web server. I want/need the
copy
to be directly between the two servers.

Any ideas would be appreciated.
--
Matthew Moran
The IT Career Builder''s Toolkit (Cisco Press)
http://www.cbtoolkit.com

Career Advice for the IT Professional
http://blogs.ittoolbox.com/pm/career


Aug 2 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2633
by: Markus Weber | last post by:
Hallo! I have created an VB-ActiveX-Componente that copy files on network. This works on one my development computer when I install application on other IIS servers (files to copy on same server with same rights) I get error message "Invalid filename or number". So what can cause this problems? Thnaks in advance!
0
530
by: durumdara | last post by:
Hi ! I have some backup files on a server farm. I want to store these local backup files on a backup file server for "safety's snake". These files are compressed zip files with 12 character length password. But my system admin asked me, how can I improve the safety of the copy operation, and the storing (now I use Samba share to store these files. I map the SMB share on the client, copy these files, and unmap SMB).
0
1247
by: rajani | last post by:
I have requirement to copy files to SAN and NAS . I am new to this . I just know SAN/NAS act like servers. Is it like copy files to any other drive or special handling has to be done. Any help is appreciated . Thanks in advance Rajani
1
2748
by: Green | last post by:
Hi, I had a question about how to copy files from server to server on the same LAN. Basically, i need to copy files from "develope server" to the "test server", then eventually to the "production server". But i don't know how to deal with this. Do you have any example code or hint? I appreciate in advance!
8
6205
by: Chris Strobel | last post by:
I have 2 web servers where I need to write a PDF file and need to keep them in sync. In others words, If the Server1 is getting called to create the PDF, then it needs to copy the PDF to the other Server2 and visa-versa. The 2 server are running 2003. It's a form-based authentication (.NET 1.1) site and I'm using IIS 6 native mode. Both boxes are set to the same workgroup. Since everything is so locked down now, I'm not sure what's the...
2
5584
by: Xavier Valdés | last post by:
Hi all, I would like to copy FILES from the clipboard to a desired folder from VB.NET. I was able to copy files (with filedrop data format) to the clipboard but I don't know how to catch this data (the entire data) and leave it (copy it) to a folder. It doen't matter if the data I want to copy is a folder, a file or a group of them. The fact is I would like to copy the WHOLE data with a function.
4
11731
by: sajid_yusuf | last post by:
Hi I am trying to develop a Windows service in VB.NET which has timer enabled and keeps checking a folder (or group of folders) for any new file or changed files. As soon as it detects any new file or changes (to files or folders) then it copies the files (and any new folders) to a folder in the mapped network drive. So far I have been successful in developing and deploying the service which works on my local machine with two drives...
1
4150
by: dkmarni | last post by:
Hi, I am trying to do this perl script, but not able to complete it successfully. Here is the description what the script has to do.. Accept two and only two command line arguments. Again, these will be the names of two directories. This time, make sure that the "sending" directory exists (and is, indeed, a directory). Make sure that the "receiving" directory exists, and if not, create it. Then, copy files from the sending directory to...
3
17016
by: =?Utf-8?B?U2Vhbk1hYw==?= | last post by:
How do I programmatically copy files across a network (from a local workstation to another local workstation on the network) using visual basic 2005? In other words, when in explorer and you enter a unc path to a network workstation, you are prompted with a dialog box asking for the user name and password that has access rights to that computer. After validating, you can access the files on the remote pc just like you can on your own pc,...
2
3216
by: parmarjm | last post by:
Hi I am trying to copy files from mapped drive (J:\) to a different machine. The perl script is going to run on my machine to copy files from one place to another. File transfer works when i copy files from mapped drive to my machine but when I tried to copy over to different machine throws me an error: Please help me recrify Here is my perl script as follows:
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8876
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7741
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.