How can I do a function, that allow do the download of a file in C: ?
For example, when the link is clicked, trigger a javascript function that will open the file or made download.
I’m trying this,
But it execute the program, I need that execute a download!
if (url == "Supremo") {
var oShell = new ActiveXObject("WScript.Shell");
var prog = "C:\\inetpub\\wwwroot\\admin.redenetimoveis.com\\San\\up\\arquivos\\Supremo.exe";
oShell.run('"' + prog + '"', 1);
return false;
}
To get a user to download an exe file, you simply need to point them to the url with something like
As per the comment below, simply make an
anchortag that points to the file: