From 06f38e5766f48ac13c9508d253b886655856ef5c Mon Sep 17 00:00:00 2001 From: Joeri Date: Fri, 20 Feb 2026 14:32:04 +0100 Subject: [PATCH] - --- cleanup.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cleanup.ps1 b/cleanup.ps1 index 36923c7..87f2da0 100644 --- a/cleanup.ps1 +++ b/cleanup.ps1 @@ -2,9 +2,16 @@ $ScriptTitle = "Cleanup Script" $WebhookURL = "https://n8n.questcomputers.be/webhook-test/8fde21e2-937f-4142-b983-6e1606e29335" $RemoteScriptURL = "https://git.questcomputers.be/quest-scripts/scripts/raw/branch/main/cleanup.ps1" -Add-Type -AssemblyName System.Windows.Forms +$LogDirectory = "C:\Quest" + +# Check if C:\Quest exists... +if (-not (Test-Path $LogDirectory)) { + New-Item -Path $LogDirectory -ItemType Directory -Force | Out-Null +} # Form +Add-Type -AssemblyName System.Windows.Forms + $form = New-Object System.Windows.Forms.Form $form.Text = $ScriptTitle $form.Size = New-Object System.Drawing.Size(320, 160)