C# class that listens to the file system change notifications and raises events when a directory, or file in a directory, changes.

learn more… | top users | synonyms

0
votes
3answers
71 views

FileSystemWatcher files in subdirectory

I'm trying to be notified if a file is created, copied, or moved into a directory i'm watching. I only want to be notified about the files though, not the directories. Here's some of the code I ...
0
votes
0answers
9 views

Confusion when using Delegates in Visual Basic 2010

I have a main (UI) thread which has a 'log' window, normally hidden, and some functions which process a file when it is updated. The application launch process also sets up a FileSystemWatcher, which ...
2
votes
1answer
57 views

FileSystemWatcher not firing events

For some reason, my FileSystemWatcher is not firing any events whatsoever. I want to know any time a new file is created, deleted or renamed in my directory. _myFolderPath is being set correctly, I ...
0
votes
2answers
45 views

want a Stop FileSystemWatcher() after certain period of time in C#

I have one requirement in my C# project. I have to scan a files only for certain period of time and it will stop scanning after some hours. For continuous watching a file, I used FileSystemWatcher() ...
0
votes
1answer
37 views

Monitor changes to file system in c#

I know of the FileSystemWatcher, but the scope of this is what bothers me. I want to be able to detect if a user creates a file, anywhere on the computer. When using FileSystemWatcher, if the change ...
0
votes
1answer
19 views

Unable to access directory from FileSystemEventArgs.FullPath, wrong directory name

I am using FileSystemWatcher to track changes from a directory. The problem is that I must keep track and make modifications to any recent created sub directories inside the one I am monitoring. As of ...
0
votes
1answer
72 views

File organization powershell script

Im trying to monitor a directory and its subdirectory for new files. I want to look at the file extension and move it to its appropriate folder based on the file extension. For example, If i have a ...
0
votes
0answers
20 views

Create Autosync with Microsoft Sync Framework

I am trying to use Microsoft Sync Framework. At present, I've used example code, and I have it working to keep two folders in sync. However, it will only keep it in sync once when I run the ...
1
vote
2answers
69 views

PHPStorm IDE TypeScript File Watcher

By default in PHPStorm 6 the compiled *.js are created in the same folder than the *.ts files. What I need is that the compiled *.js and *.d.js be in a different subdirectory than the same of the ...
2
votes
3answers
69 views

C# Delaying writing to XML

I'm using Filesystemwatcher to pick up a file, convert this to UTF-8 and transfer this to the destination. Now what I want to achieve is I need to delay the xml being written to the destination. i.e. ...
0
votes
2answers
58 views

Make data available to FileSystemWatcher Event Handler

I have C# 5.0 application that involves using a FileSystemWatcher on a number of different directories. This application contains a List<> of objects. Each object describes the directory being ...
5
votes
2answers
113 views

How to change a file without affecting the “last write time”

I would like to write some stuff to file, like using( var fs = File.OpenWrite( file ) ) { fs.Write( bytes, 0, bytes.Length ); } However, this changes the "last write time". I can reset it later, ...
0
votes
0answers
30 views

COM serial adaptor ticket printer queque managing with FileSystemWatcher in C#

I have to use through C# a ticket printer through a COM serial cable. A first method is run to check all the text files in a known folder and send them one by one to the printer and each file will be ...
-1
votes
1answer
101 views

Timer with FileSystemWatcher to control file Creation [closed]

I need to check a folder for some files of a certain type, then add them to an array, and print and delete them one by one. If a new file is added during the process, it will just get added to the ...
2
votes
0answers
57 views

Qt QFileSystemWatcher only triggers with certain programs

I'm currently using a QFileSystemWatcher to monitor a directory for any changes to the files contained within. This work great, but only when I change those files with certain programs. For example, ...
0
votes
1answer
51 views

Load a xml file using XDocument.Load from FileSystemWatcher. Error “The process cannot access the file..etc”

Is there a way to fix the error "The process cannot access the file..etc". The flow is that the filesystemwatcher will watch for a xml file when I detects a xml file i need to read a specific node ...
1
vote
2answers
86 views

Filesystem Watcher - Multiple folders

I want to use filesystemwatcher to monitor multiple folders as follows. My below code only watches one folder: public static void Run() { string[] args = System.Environment.GetCommandLineArgs(); ...
1
vote
1answer
249 views

FileSystemWatcher cannot access file because its being used by another process

Here my situation. I'm still pretty new at this. I'm generating some .txt files in my linux virtual box and using a c# winform application in windows to load the data into a chart. There are around ...
6
votes
2answers
77 views

.Net - How to catch the details of the file copy/move event, such as the source file name

Just want to write a applicaiton to track the relationship between the files in the disk. We know that FileSystemWatcher can fire evetns when creating, renaming or deleting the file. But ...
0
votes
0answers
91 views

SSIS WMI event watcher sensing file before the file is available for exclusive access

I am trying to create an SSIS package using WMI event watcher to create a file watcher. I want the package to do next task after the file is completely uploaded/pasted to the folder. At the moment it ...
1
vote
3answers
106 views

Avoid Error too many changes at once in directory

how to avoid the error of FileSystemWatcher in C#? too many changes at once in directory I have to detect all changes on a network share. The InternalBufferSize is increased to 8192 * 128
0
votes
1answer
51 views

Reading the last line of a text file after FileSystemWatcher detects change

My earlier post was unreadable so. I am trying to read the last line of a text file every time it changes. The code I have is, private void fileSystemWatcherMCH1_Changed(object sender, ...
0
votes
3answers
129 views

Read last line of text file after FileSystemWatcher detects change

I am new to c# so please forgive my ignorance, I am running a fileSystemWatcher on a text file. And it is working fine, I can do some simple tasks after the file has changed. All but what I want to ...
0
votes
1answer
52 views

D3 plotter and file watcher, interference?

I am using file watcher monitoring the file output, and then dynamically display the results using d3 (dynamic data display). Here is more details: Data are series of tiff file generated one by one ...
1
vote
2answers
65 views

EnableRaisingEvents every 100 miliseconds?

I am just wondering is there anyway to turn on and off for EnableRaisingEvents every 100 miliseconds? For example, initially, the EnableRaisingEvents is set true. when there is an event coming in, ...
5
votes
1answer
84 views

FileSystemWatcher.Filter - before or after buffer?

I'm working on a project with a very large amount of files being modified and created/deleted. There are some problems with multiple FSW internal buffers filling and having to be expanded. I've ...
1
vote
2answers
169 views

File system watcher for Mac OS X

Currently, we use QFileSystemWatcher, belonging to Qt. Due to the limited support in Mac OS X, it can only notify us two events: directory changed, or file changed. However, the latter event (file ...
2
votes
2answers
62 views

How can I replicate FileSystemWatcher Filter functionality with Regex in C#

I have a single FileSystemWatcher object for a c# project, and multiple patterns to match when events occur. As a project requirement, I can't create multiple FileSystemObjects and use individual ...
0
votes
3answers
60 views

Who Change the file?

I´m writing a C# Program which record all changes in a UNC Path. I use the File-System-Watcher in c# to record all changes in my file \D/X/Y(UNC path). It works very good but now my question: how is ...
1
vote
4answers
163 views

Using FileSystemWatcher to monitor a directory

I am using a Windows Forms Application to monitor a directory and move the files dropped in it to another directory. At the moment it will copy the file to another directory, but when another file is ...

1 2 3 4 5 16
15 30 50 per page