Hello,
I am wanting to use rebol/view to invoke a .bat file (in windows) which will
subsequently run a java program but that is by the by and need to pass parms to
the bat file. These parms can contain spaces so I need to surround the parm
with quotes (").
My problem is that I can't see how to do this.
Given a .bat file that merely echoes the parms and then holds the DOS command
window open for 20 seconds (using ping) then this fragment works fine:
a: "parm1"
b: "parm2"
call reduce [%/c/ron/test1 a b]
and the DOS window opens and displays a = parm1 b = parm2 as I expect.
However when I change this to:
a: join {"} ["parm1" {"}]
b: "parm2"
in an attempt to put quotes round the parm then the DOS window is not displayed
(or at least it may open and close immediately).
Issuing print a however shows "parm1" which shows that the quoting worked.
Can anyone please explain what I am doing wrong.
Sorry if this seems basic but I'm just experimenting with Rebol.
Thanks
Ron
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.