FileSystemWatcher Object - Problem OnDelete

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

The DirectoryMonitor sample codes demonstrate the .NET Framework System.IO FileSystemWatcher object works nicely but display only short file name (for example test.bdrg become test~1.bdr) when a monitored file is deleted from a COMMAND CONSOLE window yet display correctly when deleted from Windows Explorer.

Further more, many examples about FileSystemWatcher usage I've found the OnDelete event does not get triggered at all if a monitored file is deleted from a COMAND CONSOLE, yet work correctly when delete from Windows Explorer

Is this a bug on FileSystemWatcher Object? Does any one know how to work around this

Thank you
 
I've found that .Net doesn't support long file name in certain cases. Like if you are hosting two site in sub directories named betaCalvin and BetaCalvinLuttrell the compiler will get confused cause it doesn't know how to find betaCa~2.

-Calvin Luttrell
ProjectThunder.com
 
Back
Top