Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limitation in the System.IO.FileInfo.get_Length()
Message
From
05/03/2010 03:04:44
 
 
To
05/03/2010 00:50:28
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01452685
Message ID:
01452692
Views:
44
This message has been marked as a message which has helped to the initial question of the thread.
>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.....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform