我想执行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
我正在用java编写一个程序,它将执行winrar并将放在h:\myjar.jar中的jar文件解压缩到h:\new文件夹中。Runtime.getRuntime(); File dir = new File("C:/Program Files/WinRAR");
p = r.exec("winrar x h:\\myjar.jar *.* h:\\new&quo