Re: FileSystemWatcher problem
- From: Michael Nemtsev <nemtsev@xxxxxxx>
- Date: Sun, 2 Apr 2006 09:07:22 +0000 (UTC)
Hello SharpCoderMP,
FileSystemWatcher doesn't work with CD and DVD drivers
S> i have a problem with the FileSystemWatcher:
S> i want the watcher to monitor my cd drive. but when i try to set the
S> FileSystemWatcher.Path property to "e:\" (which is my drive) and
S> there
S> is no cd inside i get an exception.
S> So my question is - how can i monitor my cd-rom drive for disc
S> changes?
---
WBR,
Michael Nemtsev :: blog:
http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
.
Relevant Pages
- FileSystemWatcher problem
... i have a problem with the FileSystemWatcher: ... i want the watcher to monitor my cd drive. ... So my question is - how can i monitor my cd-rom drive for disc changes? ... (microsoft.public.dotnet.languages.csharp) - Re: FileSystemWatcher onCreated tell where it was created from?
... What do u need is to monitor harddrivers for changes, ... B> acceptable) this the FileSystemWatcher does not do (straightforwardly ... public static void Main ... RenamedEventArgs e) ... (microsoft.public.dotnet.framework) - RE: File System Monitor Question
... to create another FileSystemWatcher for the other directory. ... >Subject: File System Monitor Question ... >public class DirectoryMonitorConsole ... >private static void OnChanged ... (microsoft.public.dotnet.languages.csharp) - Re: Looking for contents in a file every minute
... If you want an event driven aproach go for the file system watcher as this ... ' Create a new FileSystemWatcher and set its properties. ... AddHandler watcher.Changed, AddressOf OnChanged ... Private Shared Sub OnChanged ... (microsoft.public.dotnet.languages.vb) - Re: FileSystemWatcher Windows Service
... procedure that writes a record to a SQL table when a FileSystemWatcher event ... >> I have been using watcher in windows service. ... >> sure all watcher events are always handled, I write a very small process ... (microsoft.public.dotnet.languages.csharp) |
|