>I have found a limitation in the System.IO.FileInfo.get_Length(). If I use FileInfo to retrieve a list of files in a directory and there is a file name having more than 160 characters, I get:
>
>"Could not find file 'FileNameHere'."
>
>Has anyone found a way to go beyond that limit?
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.....