[For Beginners]Clear Server Files Dumps in 1click

03/10/2015 12:08 Tommy.#1
Hello elitepvpers community. this theard is for the beginners who are having problem with selecting tons of dumps to clear.
its kinda useless nowadays but there's some people still dont know how to clear it fast.
1. open a 'new text document'
Paste this code there
PHP Code:
@echo off

set DMP_DIR
=dump
set FATAL_Dir
=FatalLog
set REPORT_DIR
=ReportLog

if not exist %DMP_Dir%         mkdir %DMP_Dir%
if 
not exist %FATAL_Dir%     mkdir %FATAL_Dir%
if 
not exist %REPORT_Dir%     mkdir %REPORT_Dir%

if 
exist *.dmp             move /*.dmp             %DMP_Dir% >NUL
if exist *_FatalLog.txt     move /*_FatalLog.txt         %FATAL_Dir% >NUL
if exist ReportLog_*.txt     move /Y ReportLog_*.txt     %Report_Dir% >NUL

rem pause 
Close and save
Change the text name from 'New Text Document.txt'
to ' "ANYTHING".bat ' and move it to the server files folder
Click it whenever its needed it will store and collect the dumps , error files to
"dump" "FatalLog" "ReportLog"
Then you can delete these 3 folders whenever you want
If you didn't find this useful, Other people do :awesome:
03/31/2015 03:42 Mezo.#2
good job :)