Folder Restrictor

A Windows Forms application that enforces strict naming conventions on files and folders in a monitored directory.

Overview

Folder Restrictor monitors a specified directory and automatically enforces a strict naming convention. Any files or folders that don't match the required format are automatically deleted after a 10-second delay.

Built with .NET 8, I built this Windows Forms application to feature an easy-to-use admin UI for selecting the monitored folder and managing the enforcement rules.

Key Features

  • Real-Time Monitoring

    Continuously watches folders and files for naming violations

  • Strict Naming Enforcement

    Only allows format: LastName, FirstName - 1234

  • Admin UI

    Easy-to-use interface for configuration and monitoring

  • Automatic Deletion

    10-second delay before removing non-compliant files/folders

  • .NET 8 Powered

    Built with modern .NET for Windows 10+

Requirements & Building

Requirements: Windows 10+ and .NET 8 SDK

Naming Convention: Files and folders must follow the format LastName, FirstName - 1234. Any item outside this format is deleted automatically after a 10-second delay.

The admin password is stored in App.config, and the monitored folder is selected via the UI. For build instructions and source code, visit the GitHub repository.