Terry's API Corner - Copy file
[1/1] from: depotcity::telus::net at: 15-Jun-2001 20:16
;Copy a file from one source to another. (win)
a: %/c/winnt/system32/kernel32.dll
b: load/library a
c: "CopyFileA"
r: make routine! [
IpExistingFileName [string!]
IpNewFileName [string!]
] b c
;Takes two strings, the file to copy and dir and name of the new file.
R "C:\file-to-copy.txt" "D:\new-file.txt"
;Terry Brownell