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]
---------------------------------------------------------------------

Reply via email to