Quote:
Originally Posted by cervantis_wants
Hi
I am having a open source tool called STAF where i have to run the commands for this application through a command prompt like cmd. I have used the following code to run it and saved it as a .hta file . It works fine in IE ,but in Firefox as soon as i click the link for executing this .hta file , it shows up the entire source code on the page.
I would like to know whether can we run .hta in firefox and if so , how ? and
Is there any way where we can open cmd.exe from browser in php passing parameters to it.
Thanks for the help in Advance
Cervantis
This is the code which i missed out sending in the previous post:
<html>
<head>
<script type="text/javascript">
function proc()
{
var shell = new ActiveXObject("WScript.Shell");
shell.Run("c:\\windows\\system32\\cmd.exe /K c:\\sample.bat ",1,true);
}
</script>
</head>
<body onload='proc();'>
</body>
</html>
It is saved as stafe.hta