Delete temp tmp files on shutdown

View previous topic View next topic Go down

Delete temp tmp files on shutdown

Post by jamied_uk on 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/
avatar
jamied_uk
Admin

Posts : 2260
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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