我想执行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
例如,可以这样完成提取步骤: SET Winrar=C:\Program Files\WinRAR\WinRAR.exe "%WinRAR%" e "%%I" word\comments.xml我有一个计划使用查找和替换(fnr)工具来编辑提取的文件。看起来是这样的:SET Winrar=C:\Program Files\Win