Im writing a dummy.hta program that opens up a cmd line prompt waits 5 seconds then closes it.
So far I have got
Which opens up the run command and then pops up the alert. what i can do is get the run cmd window to close by itself
So far I have got
Code:
<html>
<head>
<title>GAMES</title>
<HTA:APPLICATION
ID="objHTAHelpomatic"
APPLICATIONNAME="GAMES"
SCROLL="no"
SINGLEINSTANCE="yes"
WINDOWSTATE="maximize"
MAXIMIZEBUTTON="no"
MINIMIZEBUTTON="no"
SYSMENU="no"
CAPTION="no"
>
<script type="text/javascript">
<!--
function delayer(){
alert('Should you really have clicked that link?');
}
//-->
</script>
</head>
<body onLoad="setTimeout('delayer()', 5000)";>
<script language="javascript" type="text/javascript">
var oShell = new ActiveXObject("WScript.Shell");
oShell.Run( "command.com /K dir c:\\windows" );
</script>
</BODY>
</HTML>
Which opens up the run command and then pops up the alert. what i can do is get the run cmd window to close by itself