//copyfile.js
const fs = require('fs');
// destination will be created or overwritten by default.
fs.copyFile('C:folderAmyfile.txt', 'C:folderBmyfile.txt', (err) => {
if (err) throw err;
console.log('File was copied to destination');
});
filesystemobject.CopyFile(source, destination, overwrite)