?
Solved

FTP creates 0 byte file

Posted on 2003-03-28
6
Medium Priority
?
295 Views
Last Modified: 2006-11-17
Hi ya,
     We are having an intermittent problem with FTP.  At times while retrieving files from the FTP server, a 0 byte file is created.  WHY?

We use Windows 2000 server and client. Is this a problem with FTP server or configuration?

Thanks!
0
Comment
Question by:jmnason
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Expert Comment

by:PNJ
ID: 8225179
How are you determining whether there's a file ready to pick up? I had this once because I was doing a DIR$ with "*.DAT". The FTP program drops the (eg) FILE.DAT into the directory and CREATES the file first. It then transfers data into that file before closing it. Windows only see the number of bytes in the file when the FTP transfer has finished and the file is CLOSED. Thus, you can DIR$("*.DAT") and see the file, but if you pick it up before the transfer is finished it'll be empty. What we did was to get the FTP transfer to FTP over "*.X" and then do an FTP rename command to "*.DAT" after the transfer was done.

Alternatively you can simply ignore 0 byte files and then pick 'em up again next loop.

Pete
0
 
LVL 9

Expert Comment

by:GivenRandy
ID: 8226591
I usually find these kinds of files when the source file is not specified completely. For example, you may CD to a directory and then send that file:

put filename

However, the source file may not be there correctly. Better to use the whole path:

put some-directory\another-directory\filename
0
 

Accepted Solution

by:
jmnason earned 0 total points
ID: 8226732
We have found the problem and it appears to be in TCP/IP making a connection. Please click the link http://www.experts-exchange.com/Networking/WinNT_Networking/Q_20566719.html for further details and let us know.

Thanks all.
0
 

Expert Comment

by:CleanupPing
ID: 8531404
Hi jmnason,
This old question (QID 20566453) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
0
 
LVL 6

Expert Comment

by:GPrentice00
ID: 9440813
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

 -->PAQ - with points refunded

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER

GPrentice00
Cleanup Volunteer
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month12 days, 18 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question