|
| problem with the FileSystemWatcher and long file names |
|
|
|
|
| Messages |
|
Related Types |
This message was discovered on microsoft.public.dotnet.general.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
| Rade Pusic |
Hi,
I have a problem with next code:
FileSystemWatcher watcher = new FileSystemWatcher("c:\\Temp", "LongFileName.txt");
WaitForChangedResult result = watcher.WaitForChanged(WatcherChangeTypes.All);
When file name (second argument in FileSystemWatcher constructor) is short ( <= 8+3 characters, 8dot3 format )
or in short format ( LongFi~1.txt, short name generated for non 8dot3 format )
everything works correctly (I get change events),
but when file name is in long format ( > 8+3 characters, non 8dot3 format ) I am not receiving any change events.
Operating system is Microsoft Windows XP with NET CLR version 1.0.3705.209.
Thanks, Rade.
|
|
|
| |
|
| |
| | |
|
|
|
|
|
|
|
BootFX
Reliable and powerful .NET application framework. |
|
|
|
|
|
|