PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Delete temp tmp files on shutdown

Go down

Delete temp tmp files on shutdown Empty Delete temp tmp files on shutdown

Post by jamied_uk 17th October 2015, 00:55

Code:
cleanmgr /sageset 1

Now open
Code:
gpedit.msc

Navigate to User Configuration > Windows Settings > Scripts (Logon / Logoff) and double-click on Logoff.

Click on Add and Browse in the next window. Right-click in the blank space of the Logoff folder and create a new text document. Name it cleanup.cmd. Open it with a right-click and add the following line to it.
Code:
cleanmgr /sagerun 1
Select the file cleanup.cmd and click Open and in the previous menu OK. The file that you created should be now in the list. Click on Apply and OK afterwards. Et Voila, we are done.
All items that you selected during the configuration phase will now be deleted on every system shutdown.



http://www.ghacks.net/2007/10/28/clear-temporary-files-during-system-shutdown/
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum