I need to put image file from one directory to another with click of a button. I already have code for this-
<input type="button" name="button" value="Copy image to another folder2 " onClick="moveFile('c:\path1', c:\path2\)"/>
<script>
function movefile(path1, path2) {
var myObject, f;
f = new ActiveXObject("Scripting.FileSystemObject");
f.Copyfile(path1,path2)
}
</script>
But the problem is ActiveXobject only works for IE and not FF and chrome. Is there any any other way in js or any function in js that I can use which would work on all 3 browsers.