June 25, 2017

Home » , » Clean Temporary files Automatically while Shutting down in Windows

Clean Temporary files Automatically while Shutting down in Windows

Written By Admin on Jun 25, 2017 | June 25, 2017


Bat files:
You can use the below command to delete temp files using below command:

cd C:\Users\mn\AppData\Local\Temp
echo y | del *
cd C:\Windows\Temp
echo y | del *
exit









Change the user name to yours and save as bat file.


Procedure:

You can create a local computer policy on Windows. 


1) Run gpedit.msc to open the Group Policy Editor,

2) Navigate to Computer Configuration | Windows Settings | Scripts (Startup/Shutdown).
Share this article :

Post a Comment