Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- rem Description: This script deletes DayZ game log files.
- rem Version: 1.0
- rem Date: 2020-05-05
- cls
- set logfilePath=C:\Users\YourUsername\AppData\Local\DayZ
- rem Check to make sure the last character in the paths isn't "\".
- if %logfilePath:~-1% ==\ (
- echo An error occured: The last character in the path to the game cant be "\". The script has been aborted.
- echo Press ENTER to end the script and check the settings.
- pause >nul
- exit /b 0
- )
- rem Check to make sure the paths exist.
- if not exist "%logfilePath%" (
- echo An error occured: The path to the game "%logfilePath%" couldn't be found. The script has been aborted.
- echo Press ENTER to end the script and check the settings.
- pause >nul
- exit /b 0
- )
- cd /d %logfilePath%
- del crash_*.log
- del DayZ_x64_*.RPT
- del DayZ_x64_*.mdmp
- del DayZServer_x64*.RPT
- del DayZServer_x64*.mdmp
- del GeneralActivity_*.log
- del MCKActivity_*.log
- del script_*.log
- del ServerPanel_*.log
- del VehicleActivity_*.log
- del VehicleDamage*.log
- del workbenchApp_*.RPT
- del ZomBerry\ZomBerry_*.log
- exit /b 0
Add Comment
Please, Sign In to add comment