<body>
<SCRIPT language="vbscript">
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\exam.txt", True)
a.writeline("这里是测试!!请勿用于非法行为!!")
a.Close()
</script>
</body>
<SCRIPT language="vbscript">
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\exam.txt", True)
a.writeline("这里是测试!!请勿用于非法行为!!")
a.Close()
</script>
</body>
[email protected]
就行了,不过任然会出现提示.
[email protected]
[email protected]
[email protected]
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
</HEAD>
<BODY>
<INPUT TYPE="button" onclick="javascript:var fso = new ActiveXObject('Scripting.FileSystemObject');var a = fso.CreateTextFile('c:\\testfile.txt', true);a.WriteLine('This is a test.');a.Close();">
</BODY>
</HTML>
先谢啦
[email protected]