Skip to main content
Filter by
Sorted by
Tagged with
0 votes
5 answers
112 views

I have a process that needs to intermittently move some files from one directory to another. Before I move the files, I need to ensure that a user isn't currently adding files to the directory - if ...
Caleb Keller's user avatar
1 vote
1 answer
71 views

I need application to identify changes to the file system, particularly to identify file creation and updates. The text files are being created by another application, and are not closed until that ...
Anonymous's user avatar
  • 751
0 votes
0 answers
65 views

Chokidar is not giving proper events when multiple users are watching same network shared path. For example :- Shared Net Patrh is = \nas\TempShare\Test Now multiiple users from their individual ...
A User's user avatar
  • 327
1 vote
0 answers
159 views

In the Kubernetes environment, we are using configmap as a mount to a specific folder. The configmap is often modified and updated to kubectl application -f [configmap-name] I want to use fsnotify to ...
낑낑깡's user avatar
0 votes
1 answer
66 views

I have a filesystemwatcher watching a folder where cameras save the files. It's supposed to add the name/date to a database so they can be deleted at a later date. watcher = New System.IO....
Nuggzy's user avatar
  • 21
1 vote
1 answer
658 views

Im trying to create a windows service application with .NET 8 using as a Hosted Service, the idea of my app is Watch for a list of folders. The problem is that I'm losing the event Created fired by ...
Diego rincon's user avatar
1 vote
0 answers
88 views

I am using C# filesystemwatcher to monitor a folder for new files that are generated from two web sites running on the same machine. Sometimes new files trigger my event handler and sometimes they do ...
Pop's user avatar
  • 71
2 votes
0 answers
60 views

The "Creating Observable Sequences" section of the e-book INTRODUCTION TO RX.NET (by Ian Griffiths and Lee Campbell) describes how to transform file system events generated by ...
Максим Гришкин's user avatar
2 votes
1 answer
252 views

I have an app that works well as a cmd line app, but when running as a service, the FileSystemWatcher stops working. I have validated that the service has access to the files as it's using the same ...
user3704628's user avatar
0 votes
0 answers
36 views

I wrote code with the WPF window to synchronize files between two folders. After clicking the Run button, the code will run and monitor changes in folder f1. If a change is detected, it will execute ...
NqHai's user avatar
  • 67
0 votes
0 answers
63 views

I have a FileSystemWatcher script that monitors the XML-TO-TRANSFORM folder for XML and audio files. When a new file is created in that folder, the FileSystemWatcher detects it, grabs the XML, applies ...
Max's user avatar
  • 59
-1 votes
2 answers
82 views

I wrote a program which can open or empty the recycle bin and lives in the tray. I am using SHEmptyRecycleBin to perform cleaning and FileSystemWatcher to detect changes in the recycle bin folder. The ...
429's user avatar
  • 101
0 votes
0 answers
34 views

I want to reload my log level by changing configuration file without application restart. I added filesystem watcher to monitor changes in config static void OnConfigFileChanged() { ...
Mudita jain's user avatar
1 vote
0 answers
118 views

I am using .net6.0 And I want to monitor some changes from the configuration files and react to the changes. I have the following code to register the config file: { ... new ConfigurationBuilder() ...
Mugurel's user avatar
  • 246
2 votes
0 answers
64 views

I am using a fileSystemWatcher to watch for a xlsx to be saved. This is registered as a renamed event, on which I want to execute a python script. I then want to save this action to a log file created ...
Orange Pukeko's user avatar
1 vote
1 answer
49 views

I have a feeling this may be a fairly simple one. Basically, I have an application that, during runtime execution, generates temporary xml files. These can be useful for troubleshooting purposes. ...
sbagnato's user avatar
  • 538
-2 votes
3 answers
455 views

I have a class like this: public class MyFolderRefresher { public async Task OnRename(RenamedEventArgs e) { // do something } } public class MyDisposableListOfFileSystemWatchers : ...
Loqaritm's user avatar
2 votes
0 answers
83 views

I've been hacking at this problem since 2 months ago! Im tired, confused, burnt out and disillusioned ! I want the code below to read a file when its dropped into a folder. Sometimes 2 or three files ...
DottyMcNet's user avatar
0 votes
0 answers
71 views

I need my program to compare a main file with a reference file which is just a copy of the original one. The program actively looks for changes to the main file by comparing it to the comparison file ...
Tudor Oprea's user avatar
1 vote
3 answers
234 views

I'm writing a console application that scans a directory for files and uploads the data in them to a database. The files are a proprietary type that require a specific library that requires the ...
Zachary Mollohan's user avatar
0 votes
1 answer
143 views

I've been trying to create a script which takes the content of a text file which may look like this (1 line text in a .txt. file): SomeData SomeData SomeData and these files are dropped ...
DottyMcNet's user avatar
-1 votes
1 answer
276 views

Relatively new to c#. I made a windows form that monitors for changes to a change in a file. The program takes up 30% of my CPU and I would like to make it run a little lighter. After running the ...
Tudor Oprea's user avatar
0 votes
1 answer
90 views

I'm developing Windows Service that is using FileSystemWatcher to trigger on creation of a new folder. OnCreated it reads a file insp_board.txt that is located in that new folder, logs data into log....
Wtor's user avatar
  • 11
0 votes
0 answers
49 views

I have a service that monitors a directory using FileSystemWatcher. That portion is relatively simple: Protected Overrides Sub OnStart(ByVal args() As String) WriteToLog("ZMES SAP Importer - ...
Andrew's user avatar
  • 477
0 votes
0 answers
81 views

I realize that I may have to use Auditing to get the answer here but short of that I was wondering if anyone knew of a way to get the name of the User that dropped the file into the watched folder. ...
Paul Wichtendahl's user avatar
0 votes
2 answers
418 views

I have a FileSystemWatcher which monitors a directory for text files and when found it shows part of text in the textbox. I tried adding a breakpoint and saw that the .Text property have the desired ...
karan ugale's user avatar
1 vote
3 answers
328 views

I am looking for the fastest way (in C#/ASP.NET) to detect if anything inside a folder has changed between two points in time. I don't need to know the files, total size, or anything else about the ...
user3163495's user avatar
  • 3,968
2 votes
0 answers
71 views

I am using FileSystemWatcher to monitor newly added files in several folders. FileSystemWatcher is created for N number of folders/directories to watch separately. It works fine at the start but after ...
tejas_12's user avatar
1 vote
1 answer
65 views

Im trying to use FileSystemWatcher to watch a file and check for changes, when a change occurs it should run aa command, this works when im saving the file in notepad, however not from the actual ...
Mason Kerr's user avatar
0 votes
0 answers
99 views

I'm using the FileSystemWatcher.Changed event in my VB.NET application to track changes in files, mainly Excel files. I have used NotifyFilters.LastWrite Or NotifyFilters.Attributes. I have observed ...
IT Researcher143's user avatar
2 votes
1 answer
893 views

I'm writing a tool which will take an action whenever a new file is written into a folder on a windows server. I'm using the following $action = { write-host "action fired" Process-file $...
Ian's user avatar
  • 299
0 votes
0 answers
104 views

How to use the FileSystemWatcher with FIFO processing? The FileSystemWatcher trigger event whenever the files are pasted in the directory, so I want to perform one file at a time as first in first out ...
Suresh S's user avatar
1 vote
0 answers
44 views

Right now, I am attempting to manage boolean flags via a global hashtable: # Context: System.IO.FileSystemWatcher # File Event: 'Changed' $global:sourceId2Flag = @{} ... $objectEventArgs = @{ ... ...
Chris's user avatar
  • 31.7k
2 votes
0 answers
135 views

When I use fanotify for listening to file changes, when I delete a folder in the root directory, the files under this folder appear with (deleted) characters, for example: /data/service/el2/100/hmdfs/...
xzq's user avatar
  • 21
0 votes
0 answers
152 views

I have below program where StartFileWatcher looking into a folder (C:\TEMP) (including subdirectories) and copying all the files info to the C# channel based of file LastWriteTimeUtc and having some ...
user584018's user avatar
  • 11.5k
0 votes
0 answers
49 views

I am creating a project which will convert xls to xlsx, doc to docx and ppt to pptx using Spire libraries. I am browsing files and then saving the files complete location to TextBox1.text. I get the ...
Aamir Karim's user avatar
0 votes
0 answers
123 views

I'm writing a code for fanotify to listen a filesystem, but I'm having trouble writing a file move-in and move-out event, and I'd like to ask if a file is moved in a file system that's being listened ...
xzq's user avatar
  • 21
0 votes
1 answer
34 views

The code from https://learn.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher?view=net-7.0 reports about ten events per new file, something like "Created, Deleted, Created, Changed, ...
TryingToLearn's user avatar
0 votes
1 answer
202 views

We are receiving files in FileSystemWatcher folder very frequently because of that InternalBufferSize limit is getting exceeded and files are being missed. I am using the max limit 65536 allowed for ...
Ravi Kumar's user avatar
0 votes
1 answer
114 views

I'm creating a kind of file-editor in WPF, what is the best practice to check if a file has been changed outside of my own WPF application? I know I can track files with the System.IO....
LecArne's user avatar
  • 417
0 votes
2 answers
1k views

Introduction In my spring boot application, I need a feature to read files from a monitored directory with a listener on it, then parse/upload into postgresql database once it finds a file. Client ...
Yaz's user avatar
  • 1
-1 votes
1 answer
70 views

I have this code: public void OnCreated(object sender, FileSystemEventArgs file) { Console.WriteLine("created called"); string[] files = Directory.GetFiles($"{textBox2.Text}&...
AmsterdamGhoul's user avatar
2 votes
2 answers
81 views

I am creating a project and I am using FileSystemWatcher, however I need to add multiple filters and watcher.Filters.Add() doesn't work. I am using .NET Framework ver. 4.8 and have .NET core 7.0.203 ...
AmsterdamGhoul's user avatar
0 votes
2 answers
1k views

I am using fileSystemWatcher in C# winforms to monitor new files and folders created in the c:\Backup Folder, my clients transfer files to this folder and my application is supposed to zip newly ...
Mohsen K's user avatar
  • 287
0 votes
1 answer
54 views

I am using New-Object System.IO.FileSystemWatcher / Register-ObjectEvent (Powershell) to monitor a folder for new files and perform action. It is being run as a scheduled task under a service user ...
maifosz's user avatar
  • 55
0 votes
1 answer
94 views

I am trying to make a CheckedListBox_Notifications that shows items listing the changes happening in a specific directory. Upon the load of the form I have the code: Public Watcher_ActiveProjects ...
Eduards's user avatar
  • 78
-1 votes
1 answer
138 views

I am running a FileWatcher in a folder that is looking for a files with extension .stl and .txt watcher.Filter = "*.stl"; watcher.Filter = "*.txt"; These files are added to the ...
Faraday's user avatar
1 vote
1 answer
640 views

I created an application in C# that continuously listens to a folder for new file additions, once a new file is added, it picks up that file and uploads it to an S3 bucket. I tested the application ...
Ashley Pow's user avatar
1 vote
2 answers
767 views

I made a service which monitors a folder to see when a new file is added. When a new file is added, the file is broken down by line (each line is stored in a list), and the data stored in each line is ...
GStack11's user avatar
0 votes
0 answers
43 views

I have a script that monitors a directory for csv file changes and displays the results on the screen as an output. But when a single file has changed i.e. one event multiple lines appear in the ...
Iain Howard's user avatar

1
2 3 4 5
25