473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

automatic file upload

Hi,

is there a way to create a windows application that runs in a scheduled
task to upload files from one server to another automatically?

Any suggestion would be really appreciated

Thanks

David

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
2 2474
Well, one way you could approach the problem would be to have 2 apps,
one on each server.

The application on the source server runs whenever you schedule it.
It picks up the file and sends it to the target server.

On the target server you make a small daemon/service that is running
always and is always ready to receive the file from the source.

How the file(s) should be sent is depending on many things.
For instance, if the source server has immediate access to the target
server (for instance if the target server is a mapped drive), you
wouldn't even need a daemon on the target: the scheduled task on the
source could simply copy the file to the target (assuming it has proper
permissions).

A different way you could send the file across the wire is over HTTP.
In that case your sending app should be able to create an
HttpWebRequest that includes the file and the receiving app should be
able to receive the request, extrapolate the file content and save it
where it should go (it should also send back an HttpWebResponse saying
that the operation succeeded or failed).

I'm sure there are other ways, but, as I said, it really depends on
your situation.

HTH,
F.O.R.

Nov 16 '05 #2
Well, one way you could approach the problem would be to have 2 apps,
one on each server.

The application on the source server runs whenever you schedule it.
It picks up the file and sends it to the target server.

On the target server you make a small daemon/service that is running
always and is always ready to receive the file from the source.

How the file(s) should be sent is depending on many things.
For instance, if the source server has immediate access to the target
server (for instance if the target server is a mapped drive), you
wouldn't even need a daemon on the target: the scheduled task on the
source could simply copy the file to the target (assuming it has proper
permissions).

A different way you could send the file across the wire is over HTTP.
In that case your sending app should be able to create an
HttpWebRequest that includes the file and the receiving app should be
able to receive the request, extrapolate the file content and save it
where it should go (it should also send back an HttpWebResponse saying
that the operation succeeded or failed).

I'm sure there are other ways, but, as I said, it really depends on
your situation.

HTH,
F.O.R.

Nov 16 '05 #3

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

Similar topics

2
by: dcass | last post by:
My company wants to implement a document web server to eliminate some paper. Has anyone used a product or developed code that can notify users (via email) when new documents have been posted? ...
2
by: Sirano | last post by:
Hello, I'll want automatic upload pictures from a specified folder to the internet with PHP code. Or does somebody know a Website where I could find an answer for this. Thanks, Sirano
2
by: matt | last post by:
I have compiled some code, some written by me, some compiled from various sources online, and basically i've got a very simple flat file photo gallery. An upload form, to upload the photos and give...
4
by: Alistair | last post by:
IIS, Access 2000 I have a page that tabulates data from a DB, this data is items for sale, private ads. is there a way that at the same time it can automatically delete entries that are...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
7
by: pbd22 | last post by:
hi. i am having probs understanding how to grab a file being uploaded from a remote client. i am using hidden input fields for upload such as: <input id="my_file_element" type="file"...
2
by: hotflash | last post by:
Hi All, I found the best pure ASP code to upload a file to either server and/or MS Access Database. It works fine for me however, there is one thing that I don't like and have tried to fix but...
6
Jacotheron
by: Jacotheron | last post by:
I need a PHP script that can upload music files (mp3). The script is for a home project I have started a while ago. I have a MySQL database of all the music that I have. Other computers on the...
7
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.