473,321 Members | 1,708 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,321 software developers and data experts.

download complete

Hi all,

I am in a bit of a quandry. We have a change to make to an existing
windows service which polls a folder at configurable times and if a
certain file is found, it is ftp'd to a remote directory.

We have a new requirement where by we are now downloading large files
to UNIX. We have to provide a locking mechanism whereby we place what
is called a lock file on the remote directory and only remove it when
the proper file has completely been downloaded.

My question is (and I am no expert on ftp), is how do I know when the
file has been completely transferred onto the UNIX box.

I have heard talk of CRC, but can find very little on google about
this.

Any help greatly appreciated

Paul
Nov 15 '05 #1
1 1690
Paul,

I don't think that CRC is what you need to use. If you are FTPing the
file programatically, then the code will inform you when the file is
uploaded. For example, if you are performing an asynchronous operation,
then a callback will be called when the operation is complete. If you are
performing a synchronous operation, then the upload is complete when the
method you call to upload the file returns. After that, you can do what you
wish, deleting or removing the file.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- nick(dot)paldino=at=exisconsulting<dot>com

"Paul Cowan" <da****@hotmail.com> wrote in message
news:f4**************************@posting.google.c om...
Hi all,

I am in a bit of a quandry. We have a change to make to an existing
windows service which polls a folder at configurable times and if a
certain file is found, it is ftp'd to a remote directory.

We have a new requirement where by we are now downloading large files
to UNIX. We have to provide a locking mechanism whereby we place what
is called a lock file on the remote directory and only remove it when
the proper file has completely been downloaded.

My question is (and I am no expert on ftp), is how do I know when the
file has been completely transferred onto the UNIX box.

I have heard talk of CRC, but can find very little on google about
this.

Any help greatly appreciated

Paul

Nov 15 '05 #2

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

Similar topics

8
by: IGC | last post by:
I have a requirement to record in a database when a file is finished downloading to the end-user. Currently when a user clicks a download icon for a file it directs to an ASP page that records the...
6
by: chon | last post by:
I have an ASP page that is sent a file location as a parameter. It opens this file, loads the ADODB.Stream object and does a binary write to the page forcing the download dialog to appear. This...
0
by: Sachit | last post by:
I am working on an BIT application to download files from remote server using C#, There are an issue related with performance, I am downloading 3 files 28Kb, 79KB, 121KB respectivly on my...
1
by: com | last post by:
Extreme Web Reports 2005 - Soft30.com The wizard scans the specified MS Access database and records information such as report names, parameters and subqueries. ......
14
by: ucasesoftware | last post by:
What is the best way to download the application ? Zip ? Cab ? What is the solution to make a .exe and after dw it automaticly extract and install the application ?
2
by: barthelemy.von.haller | last post by:
Hi all, I googled and read this group but could not find any solution to my problem. I have a page to download big excel files that we 'build' on the server side. When a user click on the...
5
by: empiresolutions | last post by:
I have some scripts that when initiated by a link click will FTP a 1G+ file from a secure server to another server using ftp_get(). Once ftp_get() is complete i then user Content Headers to open a...
2
by: iitt2007 | last post by:
Is there any way to capture "download complete event" on XP? This is typically when user tries to download a file from a server and is notified when the download is complete. I am looking to...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
11
by: raamay | last post by:
when i download movies my download stops in the middle. I use Free Download Manager and i get the message "File not found in the server" error. The download manger tries to reconnect to server...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.