Automated Windows Service for monitoring a folder, renaming files with GUIDs, and moving them to a destination folder.
- Monitors a source folder for new files
- Renames files using a GUID
- Moves files to a destination folder and deletes originals
- Logs all events to a log folder
- Supports console mode for debugging
- Configurable via
App.config
- Windows 10 / 11 or Server editions
- .NET Framework 4.7+
- Admin privileges to create/manage Windows Service
- Service account with write access to source, destination, and log folders
<appSettings>
<add key="SourceFolder" value="C:\FileMonitoring\Source" />
<add key="DestinationFolder" value="C:\FileMonitoring\Destination" />
<add key="LogFolder" value="C:\FileMonitoring\Logs" />
</appSettings>sc create FileMonitoringService binPath= "C:\Path\To\FileMonitoringService.exe" start= autosc start FileMonitoringServicesc stop FileMonitoringServicesc delete FileMonitoringService
[2026-01-16 14:10:00] Service Started.
[2026-01-16 14:10:10] File detected: C:\FileMonitoring\Source\file1.txt
[2026-01-16 14:10:11] File moved: C:\FileMonitoring\Source\file1.txt -> C:\FileMonitoring\Destination\3f4d1e2a-d726.txt
[2026-01-16 14:11:15] Service Stopped.