How could I use javascript to copy C:\folderA\myfile.txt to C:\folderB\myfile.txt? I also have to check to make sure that myfile.txt does not already exist in folderB. And finally I have to then rename the new file from myfile.txt to myfile.bak.
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?