Skip to content

Start monitoring immediately on launch #12

Description

@pgodschalk

Something like a launch flag would be nice. This allows setting up parsing without interaction when launching programmatically, e.g.:

# Start Old Republic: Battle Parser
Start-Process shell:AppsFolder\37053DubaTech.OldRepublicBattleParser_efsdnxq7216xe!App -Immediate

#...

# Stop Old Republic: Battle Parser
Stop-Process -Name "orbs" -ErrorAction SilentlyContinue

# Delete Combat Logs older than 14 days
$limit = (Get-Date).AddDays(-14)
$path = $home + "\Documents\Star Wars - The Old Republic\CombatLogs"
Get-ChildItem -Path $path -Recurse -Force | Where-Object { !$_.PSIsContainer -and $_.CreationTime -lt $limit } | Remove-Item -Force

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions