FileSystemWatcher Object - Problem OnDelete

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
 
C

Calvin Luttrell/ProjectThunder.com

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top