From e8b3302b9f86ea4cdcfec940835344e4734e21d7 Mon Sep 17 00:00:00 2001 From: unknown <13404778+C9Glax@users.noreply.github.com> Date: Fri, 31 Mar 2023 14:45:51 +0200 Subject: [PATCH] Correct xml path --- switchGPU.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/switchGPU.ps1 b/switchGPU.ps1 index 5f1f4a1..0d2208d 100644 --- a/switchGPU.ps1 +++ b/switchGPU.ps1 @@ -1,6 +1,6 @@ param([String]$working=$pwd) $folderPath = "C:\.gpu" -$gpuTask = Join-Path $folderPath GPU.xml +$gpuTask = Join-Path $working GPU.xml if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`" -working $pwd" -Verb RunAs; exit } Write-Output "Testing if files exist"