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

[REBOL] Newbie: Shellcopy problem

From: udo::melis::profimail::de at: 22-Feb-2002 4:00

Hello Everybody! I have s problem: I want to copy all files from the current directory to another, but only if they dont exist there or they are smaller ( incomplete ) .. Here is what i mananged to produce .. #!/usr/local/bin/rebol -qs REBOL [Title: "CopyBigger"] if found? args: system/script/args [ foreach file read change-dir system/options/path [ if not dir? file [ if size? args/file < size? file or not exists? ( to-path args)/file [ write/binary (to-path args)/file read/binary file ] ] ] ] Ive read the file section and the script section of the DOCs and i searched the mailinglist and I did a lot of changes but nothing works ;-( If you have a solution, could you please show me how I would start the script. TNX Udo