[REBOL] Re: CMD Return-Code from rebol to a dos-batch
From: arolls:bigpond:au at: 3-Aug-2001 14:00
> How do i compute a return-value from a rebol-script to a dos-batch
> to make a if errorlevel value and do some other things in the batch-file
> with it
I haven't seen how set a return code.
I am pretty sure you can't do it as it
is not the same for all operating systems.
You could try creating a file with rebol,
and then testing for its existance in dos.
Or you could get rebol to copy the part of
your dos script that you want to execute
next into a file "section2.bat" and then
have dos execute that.
i.e. You have five files that correspond
to different sections in a switch or either statement.
You want one of them to execute depending
on the outcome of your rebol script.
rebol.exe -cs %rebol-script.r
rem We should have section2.bat now
write %section2.bat read either your-choice [