Thanks for your response.
I am soooo sorry. This is another RTFM for me.
I was thinking that "executeCommand" method would be doing some lexical
stuff. As it turns out, the section on the "batch" jess function fully
describes the situation:
>From the jess functions section:
Note: the argument must follow Jess' rules for valid atoms or strings. On
UNIX systems, this presents no particular problems, but Win32 filenames may
need special treatment. In particular: pathnames should use either '\\'
(double backslash) or '/' (forward slash) instead of '\' (single backslash)
as directory separators; and pathnames which include a colon (':') or a
space character (' ') must be enclosed in double quotes.
What is happening is the lexer/parser used by executeCommand needs the
quoted slashes.
I was looking in the wrong place. Sorry.
alan
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 26, 2000 3:28 AM
> To: Alan Moore
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: JESS: String parsing (again?)
>
>
>
>
> I think Alan Moore wrote:
>
> > Is this a problem?
> >
> > rete.executeCommand("(batch
> c:\\\\myJessDirectory\\\\scriptlib.clp)");
> >
> > I know that java requires quoting of backslashes in strings but does
> > executeCommand?
>
> It's not a problem, per se, but Jess will see the path
> c:\\myJessDirectory\\scriptlib.clp, the exact contents of the Java
> String as produced by the Java lexer. The Jess lexer places no
> special meaning on the character '\', so the doubles are not
> removed. Jess will pass precisely these characters to the Java
> FileReader constructor. In my experience, windows system calls are
> fairly forgiving in what they'll accept for path names: double
> backslashes are fine, forward slashes are equally fine, even mixtures
> of the two like "\/" will work perfectly well. So although the four
> backslashes in a row don't hurt, they don't specifically help, and two
> would be just fine.
>
>
> >
> > Please, no flames re: paths with backslashes ;-D
> >
> > alan
> >
> > Alan Moore (mailto:[EMAIL PROTECTED])
> > iAMnetworks (http://www.iAMnetworks.com)
>
>
>
> ---------------------------------------------------------
> Ernest Friedman-Hill
> Distributed Systems Research Phone: (925) 294-2154
> Sandia National Labs FAX: (925) 294-2234
> Org. 8920, MS 9012 [EMAIL PROTECTED]
> PO Box 969 http://herzberg.ca.sandia.gov
> Livermore, CA 94550
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users
> [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list (use your own address!) List problems? Notify
> [EMAIL PROTECTED]
> ---------------------------------------------------------------------
>
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------