Copy file using javascript

Jan 6 2016 1:59 AM
Hi,
 
 I want to copy one file from one location to other location through javascript.
I tried with below solution :
 
function copy()     
{
   var myObject, newpath;
   myObject = new ActiveXObject("Scripting.FileSystemObject");
   myObject.CopyFile ("c:\\test.txt", "c:\\tmp\\myTest.txt");
}
 But ActiveXObject is not working for mozila & chrome.
 
Is there any other way to do this. plz help

Answers (2)