I'm developing an HTA file and i"m trying to create a link in wich the user will be logged off when clicked.
My function:
function fn_fecha()
{
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("C:\\Windows\\System32\\logoff.exe");
}
and the call:
<tr>
<td WIDTH=300>
</td>
<td>
<a id=hsair href="#" onclick="javascript:fn_fecha" >SAIR</a>
</td>
</tr>
I've tried both the function with just one "\" (c:\windows\system32\logoff.exe) and the function with fn_fecha(), but it does not find the file when i do this. The HTA file is hosted on a server (but is not open via IIS).