Solved

find out file size

Posted on 2002-05-25
3
158 Views
Last Modified: 2010-05-02
I'm building an application where, through a sockets program, I'm sending out a file to a remote site occasionally.

What I'd like to do is figure out how big my file is before I send it out and as I send out chucks of data, let the users know how much is left to send.

Could someone offer some ideas with a small snippet of code.

Thanks in advnace.



0
Comment
Question by:samic400
  • 2
3 Comments
 
LVL 3

Expert Comment

by:Bahnass
Comment Utility
U mean


  FileNo=freefile
  Open FileName for binary as FileNo
  FileLen = LOF(FileNo)
  close FileNo



' FileLen  is the file length
0
 
LVL 3

Accepted Solution

by:
Bahnass earned 75 total points
Comment Utility
this method does not need FSO or any extra ocx
only an access permission to file
0
 
LVL 13

Author Comment

by:samic400
Comment Utility
that did it.

thank you.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now