Thanks a lot for your help and tips. I have got it at last. It is me that
misunderstood the meaning about double quoting the pathnames. 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 06, 2003 3:20 PM
To: [EMAIL PROTECTED]
Subject: Re: JESS: Problem with accessing .clp file in Jess


Hi,

There's an essay by Eric S. Raymond entitled "How to ask questions the smart
way" which I'd refer you to, but unfortunately the site seems to be down at
the moment.

In any case, this would have been easier if you showed us what you tried and
what happened, rather than saying "it simply doesn't work." I am forced,
therefore, to guess.

Anyway, it's just like programming in many other languages; strings are in
double quotes, and backslashes, which have special meaning, should be
doubled. So did you try

        (batch "C:\\Wherever\\my test.clp")

That should work fine. If you've neglected to double the backslashes, or
neglected to enclose the path in double quotes, then you'll indeed get a
"file not found" error. If the file is in the current directory, you can
dispense with the full path, and just write

        (batch "my test.clp")

Anyway, if you think you're doing the right thing but the wrong thing is
happening in response, then please show use precisely what you did and what
happened.


I think Y.Lei wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Dear all,
> 
> I am new to Jess. Now I am using it in my application. This is a very 
> na_ve question. How can I access the file which has space characters 
> in its name? I have read the batch function carefully. It says that we 
> can just use double quote to enclose the space character. But it 
> simply doesn't work. Maybe I misunderstood the meaning. For example, 
> my file name is "my test.clp", how can I let the jess recognize the 
> file name?
> 
> Thanks
> 
> yuangui
> 
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

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

Reply via email to