Clean Temporary files Automatically while Shutting down in Windows

Clean Temporary files Automatically while Shutting down in Windows


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).

Comments

Popular posts from this blog

Create an HTML document giving details of your name, age, telephone number, address, TLC code & enrolment number aligned in proper order.

Applet Not initialized properly’ Error in Finacle – Solution

Fresh installation of CSI Applications and Database