title: How can I move a file to other directory using JavaScript?
body: <p>I am new to JavaScript. I need to move a file to another directory using JavaScript. How can simply move that file with JavaScript?</p>
  
  <p>How can I solve this? </p>
  
  <p>I tried this, but it didn't work....</p>
  
  <pre><code>&lt;html&gt;
  &lt;h2&gt;Move file in JavaScript&lt;/h2&gt;
  &lt;script language="javascript"&gt;
  function moveFile(){
          var object = new ActiveXObject("Scripting.FileSystemObject");
          var file = object.GetFile("Table1.xml");
          file.Move("./Docus/");
          document.write("File is moved successfully");
  }
  &lt;/script&gt;
  &lt;form&gt;
  &lt;input type="Button" value="Move File" onClick='moveFile()'&gt;
  &lt;/form&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>How can I do this, anyone?</p>