tig / mcec

Robust remote control of Windows PCs over the network.
https://tig.github.io/mcec/
MIT License
80 stars 13 forks source link

startProcess command #7

Closed RomaMul closed 5 years ago

RomaMul commented 5 years ago

How can i start some file (exe,bat) with startProcess command ? I create MCEControl.commands file with this command: "" When i try to send "test" command i get this error "Cmd: Unknown Cmd: test" I work with win 10. Another question, how can I kill process with software name ? Thank you,

RomaMul commented 5 years ago

this command StartProcess Cmd="test" File="C:\Install\Offline 08-02-2019\index.html"

tig commented 5 years ago

In the current version the value of File must be a program name that is either in the PATH or fully qualified. File associations are not supported.

I'm working on fixing this right now in v2.

tig commented 5 years ago

This is now working in v2. For example, I created these commands:

<StartProcess Cmd="code" File="code" />
<StartProcess Cmd="tada" File="C:\Windows\Media\tada.wav" />

And they work as expected.

I'll be adding an updated Release for v2 soon.

tig commented 5 years ago

Fixed in v2.