Get Number of File in Directory

  • Thread starter Thread starter Kururu
  • Start date Start date
K

Kururu

Hi

Does anyone know how to make a form application which can get no. of file in
the directory and size???

Thousand Thanks

Kururu
 
Hi

Does anyone know how to make a form application which can get no. of file in
the directory and size???

Thousand Thanks

Kururu

The FileInfo class wiill give you the size of a file, but I have no
idea what you mean by file number. Which file appears first in the
exporer display? That is determined by the sort order.
 
Kururu said:
Does anyone know how to make a form application which can get no. of file
in the directory and size???

Take a look at the 'File', 'FileInfo', 'Directory', and 'DirectoryInfo'
classes in the 'System.IO' namespace.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top