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

[REBOL] Re: RES: Re: RES: Re: Divide a file

From: nitsch-lists:netcologne at: 10-Dec-2003 23:03

Am Mittwoch 10 Dezember 2003 20:59 schrieb Marcelo Fontes Castellani:
> Hi Carlos > > I'm a newbie in Rebol... Well, I do something with cgi but never do > something like an .r file to distribute. > > In Rebol/Core I do: > > do %fsplit.r > fsplit system/script/path/arquivo.asd "asdfile" 1024 > > And it's works... but I don't know how I can do it in a command prompt > line. Can you talk to me how I can do it, please ? >
You find the scripts args in system/options/args ; splitted by the os for {"} etc. so files with spaces ok system/script/args ; the while commandline as-is. a quick way i often use is: as last command do system/script/args then i can call it like rebol %fscript.r fsplit system/script/path/arquivo.asd "asdfile" 1024 (in this case there may be trouble because of shel-parsing and {"}, eventually escape them). second way: soa: system/options/args fsplit join system/script/path soa/1 soa/2 to-integer soa/3 and call rebol fsplit.r "arquivo.asd" "asdfile" 1024 (not tested)
> Many thanks... >