?
Solved

ftp program using wininet.dll

Posted on 1999-11-01
1
Medium Priority
?
302 Views
Last Modified: 2006-11-17
I'm using WININET.DLL control to develop my FTP client program,
which I manage to download the files from the server. The problem is how to get the size of files on the server and the size of files after downloaded(local)
0
Comment
Question by:saltacid
1 Comment
 
LVL 1

Accepted Solution

by:
PiN earned 30 total points
ID: 2177539
Check the API calls (wininet.dll)

FTPFindFirstFile

and

FtpFindNextFile.

They return a variable of the type WIN32_FIND_DATA which has the atoms

nFileSizeHigh
and
nFileSizeLow

They are what you are looking for.

After download (client size) use the

FileLen - Function

to get the size in bytes.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 Month4 days, 11 hours left to enroll

601 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