<script language="javascript">
function setip(ip)
{
var wshell;
wshell=new ActiveXObject("WScript.Shell");
wshell.Run("C:\\windows\\system32\\mstsc.exe /v:"+ip);
}
</script>
<body>
<a href="#" onclick="javascript:setip('192.20.31.1')"> RDP </a>
</body>
Just gives me an error when i try to run it.
Correctly asked questions will receive a better answer.
function setip(ip)
{
var wshell;
wshell=new ActiveXObject("WScript.Shell");
wshell.Run("C:\\windows\\system32\\mstsc.exe /v:"+ip);
}
</script>
<body>
<a href="#" onclick="javascript:setip('192.20.31.1')"> RDP </a>
</body>
Just gives me an error when i try to run it.
Correctly asked questions will receive a better answer.