Skip to content

createolddir #50

@jajator

Description

@jajator

whenever olddir is specified and not existing, i get this error:

Process-Local-Block : Skipping over processing log C:\logs\log.log. At C:\Program Files\WindowsPowerShell\Modules\Log-Rotate\public\Log-Rotate.ps1:207 char:13 Process-Local-Block -block $block @blockoptions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Process-Local-Block

createolddir does nothing, adding firstaction..mkdir..endscript doesnt work because firstaction seems to be executed after that error message.
Can someone please shed some light on whats happening here and how I can create olddir if its not existing?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions