>btw: %1 and %2 are substituted with real filenames at the command line,
>right?

Right.

>> data: do read_file
>
>data: read to-file first args
>
>; above one line should be enough.

It would have been if I'd seen 'to-file' in the manual, I missed
it in there.  http://www.rebol.com/users/valfile.html  Time
to read it again I guess.

>hmm, you have two options. You can change directory inside your .bat
>file, or not? Typical DOS stuff: CD mydir

That assumes I know what directory I'm in, and know how to
return to it when I leave it.  I wonder if some thing like
SET HERE=CD would work?  Probably not.

>or you can change directory in REBOL script:
>change-dir mydir

Probably the better thing to do, if I can figure out where
the trim.bat was run from.

>your script is run, place what-dir in the beginning of your script. Of
>course run your REBOL session without -w parameter to see the output :-)
>Hope this helps,

Yes, thank you.  Time for some more manual reading...

Reply via email to