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)