title: Javascript - copy file
body: <p>This is the script I found via google. And I've edited the file name. </p>
  
  <p>Here it is : </p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;File copy in progress...Don't close this page.&lt;/head&gt;
  &lt;script type="text/javascript"&gt;  
      // initialize ActiveXObject and create an object of Scripting.FileSystemObject.  
      var fso = new ActiveXObject("Scripting.FileSystemObject");  
  
      // copies a file to another location + overwrites the file if already exits  
      fso.CopyFile("file1.txt", "file2.txt", 1);  
  
  
      fso = null;  
  &lt;/script&gt; 
  &lt;/html&gt;
  </code></pre>
  
  <p>But it is not copying anything? Actually is it possible in JavaScript to copy a file?</p>