This C# console application, called "WindowsOptimizer," is designed to optimize your Windows system by performing several cleanup operations. It helps improve PC performance by clearing cache, deleting temporary files, cleaning the registry, and removing crash dumps. This can lead to a smoother and faster system performance.
- Clone the repository or download the source code.
- Open the solution in Visual Studio (or any compatible C# IDE).
- Build the solution to create the executable file.
- Run the generated executable to start the optimization process.
The CleanCache
method uses the built-in Windows utility cleanmgr.exe
to automatically clean the cache, freeing up disk space and potentially enhancing system performance.
The CleanTempFiles
method deletes all temporary files located in the Internet Cache folder (Environment.SpecialFolder.InternetCache
). This can help free up storage space and remove unnecessary files from your system.
The CleanRegistry
method initiates the Registry Editor (regedit.exe
) with a cleanup script (cleanup.reg
) to remove unnecessary or invalid entries from the Windows Registry. This can help improve system stability and performance.
The CleanCrashDumps
method removes the CrashDumps folder located in the Local Application Data directory (Environment.SpecialFolder.LocalApplicationData
). This folder typically contains crash dump files generated when an application encounters an error. Deleting old crash dumps can save disk space.
Please note that this application modifies system settings and files. While it aims to enhance system performance, there is always a risk associated with making changes to the system. Make sure to back up important data and create a system restore point before running this application. The author and contributors are not responsible for any data loss or damage caused by using this tool.
Note: Before running the application, ensure you have administrative privileges as some operations may require elevated permissions to make changes to the system.