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"