I'm trying to launch a process from powershell like this:-
$proc = (start-process $myExe -argumentList '/myArg True' -windowStyle Minimized -passthru)
This mostly works, however intermittently I get this error:-
This command cannot be executed completely because the system cannot find all the information required.
Googling for the error yields nothing and - to me at least - it's meaningless. The machine is quite tightly locked down and I suspect a configuration problem, but it would be easier to solve if I knew what the error was about.
The message appears to come from Microsoft.PowerShell.Commands.Management.dll
Does anyone know what it means or even what "information" it can't find?
try this one...
Set-Variable -Name myExe c:\windows\system32\cmd.exe
$proc = (start-process -FilePath $myExe -argumentList '/k' -windowStyle Minimized -passthru )
replace the cmd.exe with your exe
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.