diff --git a/wDayzLogRotation.ps1 b/wDayzLogRotation.ps1 index 2cc55ab..973a815 100644 --- a/wDayzLogRotation.ps1 +++ b/wDayzLogRotation.ps1 @@ -1,12 +1,14 @@ # wDayzLogRotation 0.6 # Input parameters: -# -# (Usually inside the server's root folder) -# [Path to BEC location] (Optional. By default, BEC location inside the server's root folder) +# : Absolute, fully qualified path to server's root folder. +# : Usually name of folder inside the server's root folder. Can be absolute path. +# : In this case, the last part of path interpreted as the name of instance. +# [Path to BEC location] : Optional. By default, BEC location inside the server's root folder. # # Example: # powershell.exe -File "wDayzLogRotation.ps1" "Z:\Servers\DayZServer" "Instance_1" "D:\server tools\BEC" # +# ----------[ Configuration ]---------- $date = Get-Date # Get current system date $daysAmount = 7 # Number of days to store logs $noDelete = $false # For tests - don't delete logs