[REBOL] Re: Using call with view/pro
From: tbrownell:shaw:ca at: 13-Mar-2002 2:31
Copying creates new file info, moving retains the old.
;To copy a file...
kern32: load/library %kernel32.dll
CopyIt: make routine! [
] kern32 "CopyFileA"
;CopyIt "C:/original.r" "C:/trash/copy.r" 0
;To move a file...
MoveIt: make routine! [
] kern32 "MoveFileA"
;MoveIt "C:/file.r" "D:/file.r"
----- Original Message -----
Sent: Wednesday, March 13, 2002 1:18 AM
Subject: [REBOL] Re: Using call with view/pro
> Hi Gregg,
> Running executables/batch files works OK.
> However I particularly wanted to copy a file from 1 location to another on
Win98 without having to read the file in in Rebol and writting it back out