0

所以我用這個控制檯命令使用特定應用程序打開一個文件,然後傳遞一個參數(間隔使用,使其更清晰)如何將此命令行代碼轉換爲在PowerShell ISE 2.0中運行?

start C:\"Documents and Settings"\User\"My Documents"\Application_folder\Application.exe 

"C:\Documents and Settings\user\My Documents\file_folder\file.type" 

"Parameter1" 

現在我希望能夠調用此相同命令,但在PowerShell ISE中。我嘗試了一些變化,但沒有工作。我並不是那麼熟悉PowerShell,所以任何人都可以爲我學習如何做到這一點?

回答

0

如何

& 'C:\Documents and Settings\User\My Documents\Application_folder\Application.exe' "C:\Documents and Settings\user\My Documents\file_folder\file.type" "Parameter1"