Hello, am currently using MoniDIR 2000 to monitor folders on a remote pc (shared folders), however, with my current app, I can set it to send me an email whenever there is a change in the monitored directory/folder, but it does not tell me what file has been added. Anyone can suggest another app which can send emails with the names of the files added as well?

Dani AI

Generated

The thread asked for a free way to monitor folders and receive email notices that include the actual filenames. later reported success with a GUI tool, and pointed to the Linux iNotify approach. For a Windows-native, free, and fully controllable solution, PowerShell + the .NET FileSystemWatcher is a reliable option: it reports Created/Changed/Renamed events and can be scripted to email the exact filename.

FileSystemWatcher is documented on Microsoft Learn, and PowerShell can register events with Register-ObjectEvent and send mail with Send-MailMessage:
FileSystemWatcher class
Register-ObjectEvent
Send-MailMessage

Example (minimal) — replace SMTP/server details and paths as needed:

$watcher = New-Object System.IO.FileSystemWatcher
$watcher.Path = '\\server\share'
$watcher.Filter = '*.*'
$watcher.IncludeSubdirectories = $true
$watcher.InternalBufferSize = 8192
$watcher.EnableRaisingEvents = $true

Register-ObjectEvent $watcher Created -Action {
  $name = $Event.SourceEventArgs.Name
  $full = $Event.SourceEventArgs.FullPath
  Start-Sleep -Seconds 2
  Send-MailMessage -From 'alerts@example.com' -To 'ops@example.com' -Subject "New file: $name" -Body "Path: $full" -SmtpServer 'smtp.example.com'
}

Practical tips: run the script as a Scheduled Task or service so it survives reboots; use a service account with access to UNC shares if monitoring remote folders; increase InternalBufferSize to reduce missed events under heavy activity; avoid sending alerts while a large copy is still in progress by checking file locks or stable file size before emailing. This approach gives full control over format, batching, and retries without third‑party licensing.

Recommended Answers

All 2 Replies

currently using TheFOlderSpy, excellent results so far

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.