matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: copy file
js code: CopyFile('c:\\test.log', 'c:\\test.txt');
function CopyFile(src, dest) {
Interop.Call('kernel32', 'CopyFileW', src, dest, false);
}
js code: RenameFile('c:\\test.log', 'c:\\test.txt');
function RenameFile(src, dest) {
Interop.Call('kernel32', 'MoveFileW', src, dest);
}
This post was edited on 06-09-2009 at 08:09 PM by matty.
|
|