You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
860 B
39 lines
860 B
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" Content="Microsoft Developer Studio">
|
|
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<TITLE>Document Title</TITLE>
|
|
</HEAD>
|
|
|
|
<SCRIPT LANGUAGE=javascript>
|
|
<!--
|
|
|
|
function Print( line )
|
|
{
|
|
out.innerHTML = out.innerHTML + line + "\n";
|
|
}
|
|
|
|
function button_sec()
|
|
{
|
|
// debugger;
|
|
Print( "ActiveXObject Shell" );
|
|
sh = new ActiveXObject( "Shell.Application.1" );
|
|
Print( "ActiveXObject" );
|
|
fso = new ActiveXObject("Scripting.FileSystemObject");
|
|
Print( "CreateTextFile" );
|
|
myfile = fso.CreateTextFile( "c:\\testfile.txt", true );
|
|
Print( "Close" );
|
|
myfile.Close();
|
|
Print( "Done" );
|
|
}
|
|
|
|
//-->
|
|
</SCRIPT>
|
|
|
|
<INPUT type="button" value="Start Security Check" id=button1 name=button1 onClick="button_sec();"><P>
|
|
|
|
<DIV ID=out></DIV>
|
|
|
|
|
|
</BODY>
|
|
</HTML>
|