Deno.Command not working for application
Hello. Im trying to start an application using Deno.Command, but it for some reason doesnt work. The path itself functions normally even from powershell.
5 Replies
Are you trying to execute a Windows shortcut? Lol you can’t do that. You need an executable.
Its an .lnk
Idk if thats exactly what you mean
In node that previously did work perfectly fine with .lnk's
Running a shortcut might work if you pass powershell.exe or cmd.exe as the executable for Deno.Command and the lnk file as the argument
That works, thank you very much
You can also consider use this to simplify running the commands: https://github.com/dsherret/dax
GitHub
GitHub - dsherret/dax: Cross platform shell tools for Deno inspired...
Cross platform shell tools for Deno inspired by zx. - GitHub - dsherret/dax: Cross platform shell tools for Deno inspired by zx.