Running hstart from MSYS

0

I'm trying to automate some things on my computer. And here's what I ran into. I'm running this command from MSYS prompt:

hstart /elevate "cmd /k netstat -anb"

First a message box with title "Failed to create process - Hstart" appears, saying: "C:/Program Files (x86)/Git/elevate" A new non-elevated console is then opened with a message: "The requested operation requires elevation." It works as expected if run from cmd.exe. What is even happening and how to make it work?

x-yuri

Posted 2014-06-18T17:51:01.120

Reputation: 225

Answers

0

It appears MSYS performs automatic paths conversion, if it's to run an executable "not dependent on msys-1.0.dll." So for it work you can double the slash:

hstart //elevate "cmd /k netstat -anb"

Here are some more links, just in case.

x-yuri

Posted 2014-06-18T17:51:01.120

Reputation: 225