On Thu, Apr 8, 2010 at 10:42 AM, Sprague, Webb (OFM)
<[email protected]> wrote:
> I am not sure how to answer this question... I want my J script to do the
> work for me, and tell me what its pathname is while it is being run.

I believe this is what you are looking for:

dirname=: #~  '/\' +./\...@e.~ ]
sourcepath=: dirname (4!:4<'dirname') {:: 4!:3''

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to