You can implement a Handler URI.
Create a . REG file to be executed, with the appropriate permissions, on Windows machines, with content similar to this:
REGEDIT4
[HKEY_CLASSES_ROOT\SuaAplicacao]
@="URL:Protocolo SuaAplicacao"
"SuaAplicacaoHandler"=""
[HKEY_CLASSES_ROOT\SuaAplicacao\DefaultIcon]
@="\"C:\\Program Files\\SuaAplicacao\\SuaAplicacao.exe\""
[HKEY_CLASSES_ROOT\SuaAplicacao\shell]
[HKEY_CLASSES_ROOT\SuaAplicacao\shell\open]
[HKEY_CLASSES_ROOT\SuaAplicacao\shell\open\command]
@="\"C:\\Program Files\\SuaAplicacao\\SuaAplicacao.exe\" \"%1\" \"%2\" \"%3\" \"%4\" \"%5\" \"%6\" \"%7\" \"%8\" \"%9\""
After that, use Urls in the following format:
SuaAplicacaoHandler://qualquerDadoQueDesejarPassar
for your Windows application to be invoked, and the parameter qualquerDadoQueDesejarPassar
received by the application.
Javascript does not have direct disk access or system properties, except for Node.js.
– BrTkCa
has some way to make a web service application open an application on desktop?
– Aderbal
What you could do is a back-end application (Node.js, java, spring, etc.) with an end-point that when consumed runs yours. exe, and consume that end-point of your web application.
– BrTkCa
Search for URI Handler in the language used on your desktop system to know how to register type Urls
suaAplicacao:\\dados
.– OnoSendai