This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:windows:del_temp [2013/04/17 13:20] gcooper |
computing:windows:del_temp [2013/07/18 14:17] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Delete Temporary Files ====== | ====== Delete Temporary Files ====== | ||
+ | |||
+ | ===== Windows XP, Vista, 7 ===== | ||
+ | |||
+ | Delete temp files for all users: | ||
+ | |||
+ | < | ||
+ | @echo off | ||
+ | |||
+ | IF EXIST c: | ||
+ | |||
+ | DEL /f /s /q %temp%\ | ||
+ | |||
+ | IF EXIST " | ||
+ | for /D %%x in (" | ||
+ | del /f /s /q " | ||
+ | del /f /s /q " | ||
+ | ) | ||
+ | ) | ||
+ | |||
+ | IF EXIST " | ||
+ | for /D %%x in (" | ||
+ | del /f /s /q " | ||
+ | del /f /s /q " | ||
+ | ) | ||
+ | ) | ||
+ | </ | ||
===== Terminal Server (RDS) Script ===== | ===== Terminal Server (RDS) Script ===== |