2
Man, if I were you I’d make a file .bat
and would call his execution with Javascript.
The Javascript file:
var objetoMan = new ActiveXObject("Scripting.FileSystemObject");
var WshShell = new ActiveXObject("WScript.Shell");
var oExec = WshShell.Exec("c:\\temp\\SeuArquivo.bat");
The archive .bat
:
copy \\server\programa\NomeDoAtalho.lnk %userprofile%\desktop
This is not only possible with Javascript, probably for security reasons.
– Vitor M. Barbosa
It could be done as Notifications API, show a notification asking for permission, following this format there would be no security problem at all, the problem is to force the user to create a shortcut.
– Gabriel Rodrigues