title: javascript - Copy file from one directory to another
body: <p>How could I use javascript to copy <code>C:\folderA\myfile.txt</code> to <code>C:\folderB\myfile.txt</code>? I also have to check to make sure that <code>myfile.txt</code> does not already exist in <code>folderB</code>. And finally I have to then rename the new file from <code>myfile.txt</code> to <code>myfile.bak</code>.</p>
  
  <p>I know javascript can't really be used on a local file system, but if it could be, how would I write this code as simply as possible?</p>