Clear prefetch folder
This script deletes the contents of "%SYSTEMROOT%\\Prefetch\\*", typically pointing to "C:\\Windows\\Prefetch\\". What is Prefetch? Introduced in Windows XP, Prefetch was developed by Windows to expedite application startup and the boot process. It works by preemptively loading data and code pages into memory from the disk before requests, monitoring application's startup page faults, and storing the gathered data in the Prefetch directory. Why Clear the Prefetch Directory? Over time, many fi...
Clear temporary system folder
This script eliminates the contents of the "%SYSTEMROOT%\\Temp\\" directory, also known as the Windows Temp directory. This directory is located within the Windows system folder "%SystemDrive%\\Windows\\Temp\\". It is used by the system and system-level processes to store temporary files, including those generated by the operating system and other system-level software. This folder, protected by specific access control lists (ACL), is accessible only to system-level accounts. Known for being utilized...
Clear temporary user folder
This script deletes the contents of the "%TEMP%\\" (or "%LOCALAPPDATA%\\Temp\\", "%TMP%\\") directory, used by applications and processes to store temporary files. This directory is situated within the user profile "%SystemDrive%\\Users\\\\AppData\\Local\\Temp". Only the respective profile user can read and write to this folder. This folder's usage for understanding user behavior in forensics raises privacy concerns. Its content deletion, a regular operation performed by Windows system tools li...