>What is get_Length() ? (I'ts certainly not a static method of System.IO.FileInfo)
>IAC this works :
System.IO.FileInfo fi = new System.IO.FileInfo("d:\\tmp\\longfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilename.txt");
>
>long i = fi.Length;
Length of the file name is 196.....
A reference from fileinfo will work. The problem is with the DirectoryInfo class. This ones uses a get_Length function when we call the GetFiles() method.