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.
 
Back
Top