function copy() { var myObject, newpath; myObject = new ActiveXObject("Scripting.FileSystemObject"); myObject.CopyFile ("c:\\test.txt", "c:\\tmp\\myTest.txt"); }