Click here to Skip to main content
15,895,084 members
Articles / Programming Languages / C#

Build a Windows Worker Service Using .NET Core 3.1 for Removing Old Files in Folders

Rate me:
Please Sign up or sign in to vote.
4.89/5 (18 votes)
4 Sep 2020CPOL5 min read 37.6K   1.3K   40  
A Windows service that removes files older than a specific date from a configurable set of folders
Creating a Windows service used to be a cumbersome process but has become much easier with the new worker service framework introduced in .NET Core 3.0. The code in this article is mostly to introduce the reader to worker services and explain how to deploy a worker service as a Windows services, but the application hopefully also has some real usefulness to it in itself.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Hire Quality Software
Thailand Thailand
I've been working with software development for most of my working life. I am currently leading a development team in Thailand, www.hirequalitysoftware.com . When I am not writing code, I enjoy spending time outdoors and travel around in Asia.

Comments and Discussions