DEV Community

Rúben Lavos Costa
Rúben Lavos Costa

Posted on

How to deal with temporary files - project

Image description

Have you ever used a low spec computer? Was it slow? You checked system resources, and there was not that much room for improvement?

Well, did you check all the temporary files? Do you know what temporary files are in the first place?

*What are temporary files? *

As the name suggests, temporary files are the kind of files that store temporary data that is created by Windows itself or the programs that users use. These files help the computer runs smoothly when you use related programs or tasks. They are also known as foo files and it has .temp as an extension

When you are using some editing software related to media, graphics, or text writing there will be temporary files created for your work in progress. Not only do these files will help your program to run faster and smoother, but they also help create a recovery backup in case your system or program shut down unexpectedly..

Source:
https://appuals.com/what-are-temporary-files-and-is-it-safe-to-delete-them/

Temporary files, if in excess, can make your computer slow. And as I mentioned previously, if you are using a low spec computer, they will slow it down!

Thinking of that, I decided to make a script using NodeJS to automatically clean those files and log some important data to discord. And used it at my school. To facilitate the work. Using nexe I decided to create a .exe file, so we wouldn't need to install NodeJS or any other applications. We did it on 2 / 3 hours and successfully installed the software on every school's computer. On the next day, there were some teachers talking about the slowness of the computers and one thing that they have said was: "I have no clue how, but school's computers are faster now.". We could definitely say that we did something good for our school

You can do it for yourself, either at work or at home, using my GitHub repository, where the source code is public.

Everything is explained on the readme.md file Later on I'll do a video covering the installation of the software as well as some configurations.

Top comments (0)