<html>
<BODY>
<script language="JScript">
<!--
function copy()
{
var myObject, f;
myObject = new ActiveXObject("Scripting.FileSystemObject");
f = myObject.file.copy("c:\\test.txt", "c:\\mytest.txt");
} -->
</script>
Copy test.txt to mytest.txt
<form name="myForm">
<INPUT type="Button" value="Copy File" onClick='copy()'>
</form>
</BODY>
</html>
|