• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Windows] Batch File with del all temporary files + autostart.

ROKI721

Well-Known Member
Joined
Mar 12, 2011
Messages
179
Solutions
5
Reaction score
61
Location
Poland
We have here on otland.net people looking for help with ots, I thought it would be nice to share something that can be useful not only in creating a server.
Come on if you need it.

1. You need:
keyboard + 2 minutes.
----
Click [Windows] + R, write notepad and press enter.
Code:
@echo off
title Cleaner All Temp Files in microsoft windows temporary folders
taskkill /fi "memusage gt 150000"
cd %appdata%
cd ..
cd Local
cd Temp
del *.* /Q /F /S
cd C:/Windows/Prefetch
del *.* /Q /F /S
cd C:/Windows/Temp
del *.* /Q /F /S
exit
---
Save it with extension .bat and click [Windows] + R, type %appdata% and press enter.
Open path: Microsoft -> Windows -> Menu Start -> Programs -> Autostart and copy here your file.bat
______________________________________________________________________________________________________________
taskkill /fi "memusage gt 150000"
Its kill all processes without admin privilages if program use 150+ mb RAM.
 
Back
Top