Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Temp files deletion on log off

$
0
0

Hi Guys,

I was wondering if someone can provide me a script for me to have ran automatically on log off so all my temp un-needed files are deleted. I am on a windows 7 client.

I have tried to run various scripts on log off but none execute at all, one script I used is below, but if that can be fixed or a better one that works can provided that would be much appreciated.

cleanmgr /sageset:99
del /q /s "C:\Users\Ted\AppData\Local\Temp\*.*"
del /q /s "C:\Windows\Temp\*.*"
del /q /s "C:\Temp\*.*"
cleanmgr /sagerun:99

Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>