Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[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! [ lpExistingFileName [string!] lpNewFileName [string!] bFailIfExists [integer!] return: [integer!] ] kern32 "CopyFileA" ;CopyIt "C:/original.r" "C:/trash/copy.r" 0 ;To move a file... MoveIt: make routine! [ lpExistingFileName [string!] lpNewFileName [string!] ] kern32 "MoveFileA" ;MoveIt "C:/file.r" "D:/file.r" TBrownell ----- Original Message ----- From: <[philb--upnaway--com]> To: <[rebol-list--rebol--com]> 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 again.