TrayApp is a lightweight system tray application designed to work alongside MonitoringFolderService, a Windows Service for automated folder monitoring and logging. The service runs in the background, ensuring persistent and reliable operation without user interaction.
You can also use MonitoringFolderService as a standalone service without TrayApp. It will function independently, logging all monitored events to the log folder specified in App.config
. However, without the app, you will not receive real-time notifications.
- 📂 Automated Folder Monitoring – Tracks folder changes in real-time, detecting additions and deletions.
- 📜 Event Logging – Logs system events directly to a file.
- 🖥 Runs in Background – Operates silently without requiring user interaction.
- 🔄 Auto-Start – The service starts automatically with Windows.
- ⚡ Lightweight – Minimal resource usage for efficient performance.
- C# (.NET Framework) – Core development language.
- Windows Services – Background execution and automation.
- System.IO – File system monitoring.
- Event Logging – Capturing system activity.
Before running the service, you must update the monitored folder path in the App.config
file inside the service folder. The default paths are:
- Monitored Folder:
E:\FolderMonitoring\Source
- Logs Folder:
E:\FolderMonitoring\Logs
If your system does not have an E:
drive, the service will fail to start. Modify these paths according to your system configuration before proceeding.
- Download & Extract the project folder.
- Navigate to:
MonitoringFolderService/bin/Debug/
- Locate TrayApp.exe
- Run TrayApp.exe manually for the first time.
- The TrayApp will now start automatically every time you turn on your PC.
- Open Command Prompt as Administrator.
- Navigate to the .NET Framework directory:
cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319
- Run the InstallUtil command to install the service:
InstallUtil "C:\Path\To\MonitoringFolderService.exe"
- To uninstall the service:
InstallUtil /u "C:\Path\To\MonitoringFolderService.exe"
- Open Command Prompt as Administrator.
- Stop the service:
sc stop MonitoringFolderService
- Delete the service:
sc delete MonitoringFolderService
- Manually delete the MonitoringFolderService.exe file if needed.
- To restart the service:
sc stop MonitoringFolderService && sc start MonitoringFolderService
- To check service status:
sc query MonitoringFolderService
- To manually start the service:
sc start MonitoringFolderService
We welcome contributions! To get started:
- Fork the Repository – Clone your own copy.
- Create a Branch – Work on a feature or bugfix.
- Commit Changes – Ensure clear commit messages.
- Push to GitHub – Submit a pull request.
- Review & Merge – Your contribution will be reviewed and merged.
- Ensure you have Administrator Privileges when installing or managing the service.
- If you encounter issues, check the Windows Event Viewer for logs.
- The service runs silently in the background and logs file activities into a designated log file.
📌 Now you're all set! 🚀 Enjoy seamless, automated monitoring with TrayApp & MonitoringFolderService!