Search Result

Collapse
7 results in 0.0039 seconds.
Keywords
Members
Tags
filesystemwatcher
  •  

  • Paul73
    started a topic FileSystemWatcher IncludeSubdirectories problem

    FileSystemWatcher IncludeSubdirectories problem

    Hi everyone,

    I'm hoping someone can help me. I'm using FileSystemWatch er to watch a folder on the network that'll copy files to a local drive. Everything works fine when files are added to the root directory. So x:\file.txt is copied to c:\file.txt.

    But when I drop a file into a subdirectory (ie. x:\subFolder\fi le.txt to c:\file.txt) I get an UnauthorizedAcc essException error.

    It looks like when a file...
    See more | Go to post

  • philip Montgome
    started a topic File System Watcher problem referencing

    File System Watcher problem referencing

    I have this code to create multiple filesystemwatch ers and store them in an array list but I need to be able to reference an individual watcher to disable raising events while I complete another process. Does anyone know how to achieve this?.

    Thanks

    Code:
            protected void CreateWatchers()
            {
                Logtext("Create Watchers");
    
    
                foreach
    ...
    See more | Go to post

  • philip Montgome
    started a topic Why is my FileSystemWatcher not working?.

    Why is my FileSystemWatcher not working?.

    Hi All,
    I have a windows service that used a filesystemwatch er to monitor a directory, all worked fine. I am now trying to scale it to handle a few more watchers, depending on user input in a INI file.

    The code i have the moment will read in the ini settings, and set the paths , it runs but the watchers never report I am trying this code below, but to no avail.

    Any Ideas?. have I initialized them ok ?. ...
    See more | Go to post

  • Porting a FileSystemWatcher app from CosoleApplication to Windows Forms

    Hello,

    I have the following app. It works great as a console app. It tracks any file changes, renames, or errors:

    Code:
    static void Main(string[] args)
    	{
    		FileSystemWatcher watcher = new FileSystemWatcher(@"C:\");
    
    		watcher.NotifyFilter = (NotifyFilters.LastAccess | NotifyFilters.LastWrite | NotifyFilters.FileName | NotifyFilters.DirectoryName);
    		watcher.IncludeSubdirectories
    ...
    See more | Go to post

  • How do I Wait for files to finish populating a directory before processing...

    I am using the FilesystemWatch er to look for files in a Directory, it does not matter what the file is. After a file appears it starts my ftp process and I end up with a bunch of 0 byte files because it processed before all the files arrived. I would like to WaitFor... (Files_Created) to finish but dont seem to have the right syntax to get this to work properly. I have working code up until it loops. As you can see I have tried various processes...
    See more | Go to post
    Last edited by tlhintoq; May 26 '10, 06:09 PM. Reason: [code] your code here [/code] tags added

  • zu1u
    started a topic FileSystemWatcher Path, Filter
    in .NET

    FileSystemWatcher Path, Filter

    Hi guys,
    i'd like to use FileSystemWatch er to monitor all FileSystem Events on all my hard drives. Now i tried "/", "\\" or "\\.\" and similar as paths.. but I only receive events from my C:\ drive. Documentation tells me that i can use UNC Paths, that's what I use..

    Is there a way to use just a single FileSystemWatch er? If so what Path do i need to provide?
    Or do I have to use one for...
    See more | Go to post

  • check if file is being uploaded using FileSystemWatcher class

    Hi,

    I am developing a monitoring tool which logs all the files that are being uploaded. I am using FileSystemWatch er class to achive this. When a file is selected for upload the Changed event of FileSystemWatch er is fired. But is there any way of knowing that the event is fired for upload only. Coz the changed event is fired even when the file is renamed.

    Is there any other "Better" way of logging the files...
    See more | Go to post
Working...