crclayton / custom-cortana-commands-template

This is a template for how to register custom Cortana commands on Windows 10.
84 stars 56 forks source link

Unable to launch .bat file #7

Open ghost opened 6 years ago

ghost commented 6 years ago

When i try to launch the .bat file using the similar code; nothing happens. It is not supporting System.Diagnostics.Process as well. Is there any method launch executable or command using UWP?

crclayton commented 6 years ago

Not that I'm aware of, but hopefully someone can answer.

inxomnyaa commented 6 years ago

I am executing batch commands in my UWP-App (https://github.com/thebigsmileXD/CustomCommandsForCortana) using System.Diagnostics.Process, but issues occur on commands which need higher permission levels (like shutdown or similar).

ghost commented 6 years ago

Thanks @thebigsmileXD for your solution. But UWP's System.Diagnostics namespace does not support Process method. I tried cloning your solution; and it shows build errors due to some incorrect dll references.

your code looks correct; but this doesn't seem standard way to achieve this in UWP.