Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I know the size of a directory???

Status
Not open for further replies.

colosoderada

Programmer
Sep 14, 2000
26
ES
could Anybody tell me how I can know the size of a directory????

Thanks in advance.
 
Hi!
This question is a bit ambiguos as to u want to know the no. of files or the length of files inside the directory well, read about findfirst and findnext in the help and then there is a function called filelength() now depending upon ur requirement prepare the code. Hope this helps u. If u require more help with code. Repost the query with clear problem definintion.

Regards,
SwapSawe.:)
 
I would like know if a directory is empty o if this directory isn´t empty. If the directory is empty I going to use the function DeleteDirectory to delete it.

thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top