Bir PowerShell komut dosyasını kullanarak bir EXE dosyasını çalıştırmaya çalışıyorum. Bir sorun olmadan çalışır komut satırını kullanırsanız (ilk onu çağırmak için yürütülebilir ve parametrelerin serinin adını kaynağı):Bir PowerShell betiği kullanarak bir EXE dosyası yürütme
"C:\Program Files\Automated QA\TestExecute 8\Bin\TestExecute.exe" C:\temp\TestProject1\TestProject1.pjs /run /exit /SilentMode
Ama bir senaryonun içine aynı şeyi yapıyor hata verir:
(I "&" operatörünü kullanarak komutu çağrılan.)The term '"C:\Program Files\Automated QA\TestExecute 8\Bin\TestExecute.exe" C:\temp\TestProject1\TestProject1.pjs /run /exit /SilentMode' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Bu sorunu nasıl düzeltebilirim?
Kodunuzu yazın, lütfen. Sorunun yattığı yer olduğu için, bakmak zorunda kalmak, tahmin etmekten çok daha kolaydır. –