[英]How can I convert this command line code to run in PowerShell ISE 2.0?
So I'm using this console command to open a file using a specific application and then passing in a parameter (spacing used to make it more legible) 因此,我正在使用此控制台命令使用特定的应用程序打开文件,然后传入一个参数(使用空格可以使文件更清晰)
start C:\"Documents and Settings"\User\"My Documents"\Application_folder\Application.exe
"C:\Documents and Settings\user\My Documents\file_folder\file.type"
"Parameter1"
Now I want to be able to call this same command but in PowerShell ISE. 现在,我希望能够在PowerShell ISE中调用相同的命令。 I've tried a few variations but none work.
我尝试了一些变体,但没有任何效果。 I'm not all that familiar with PowerShell, so would anyone be able to school me on how to do this?
我对PowerShell并不是很熟悉,所以有人能教我如何做吗?
怎么样
& 'C:\Documents and Settings\User\My Documents\Application_folder\Application.exe' "C:\Documents and Settings\user\My Documents\file_folder\file.type" "Parameter1"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.