我想执行WinRAR.exe。WinRAR的路径由一个名为$a的变量决定。我不知道如何纠正以下代码:$a\WinRAR.exe # this line raises an error$a = "C:\Program Files\WinRAR"
echo $a # "C:\Program Files\WinRAR" is pri
Clear-Host $File1 = "C:\Program Files\WinRAR\WinRAR.exe" If ($TestFile1 -eq $True) {Write-Host "Winrar is installed."-F Green -B Black}
Else {Write-Host "Winrar is not installed