Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #5849

Re: Set working directory

From Richard Ashbery <basura@invalid.addr.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Set working directory
Date 2019-10-20 15:36 +0100
Organization None
Message-ID <5805f586d6basura@invalid.addr.uk> (permalink)
References <5805eb497bbasura@invalid.addr.uk> <mpro.pzoelw02gb5vo01xa.news@stevefryatt.org.uk>

Show all headers | View raw


In article <mpro.pzoelw02gb5vo01xa.news@stevefryatt.org.uk>, Steve
Fryatt <news@stevefryatt.org.uk> wrote:
> On 20 Oct, Richard Ashbery wrote in message
>     <5805eb497bbasura@invalid.addr.uk>:

> > I can set the current working directory by clicking into the
> > directory where my BASIC files are held and use 'Set directory'
> > from the 'Filer' window. I often forget so when I run the first
> > program containing a CHAIN keyword it fails (can't find next
> > program). It would be easier to double-click an obeyfile (perhaps
> > called !RUN_FIRST) to do this but the one tried below doesn't
> > work.

> If all you're trying to do is set the current working directory,
> then surely an obey file containing simply

>   Dir <Obey$Dir>

> would do it?

> If you add back in the complexity of the application folder, then

>   Dir <Obey$Dir>.^

> would set the directory to that within which the application lives.
> I'm not sure why you need that, though.

I vaguely remember I had a method that did this and the one I dug up
was the one above (I believe from Martin Bazley). Method seemed hugely
over complicated and doesn't work anyway.

Yes of course you are right Dir <Obey$Dir> is all that's needed. I've
done this before but forgotten how - very annoying I should forget a
simple thing like that.

Many thanks Steve

Richard

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Set working directory Richard Ashbery <basura@invalid.addr.uk> - 2019-10-20 13:44 +0100
  Re: Set working directory Steve Fryatt <news@stevefryatt.org.uk> - 2019-10-20 14:54 +0100
    Re: Set working directory Richard Ashbery <basura@invalid.addr.uk> - 2019-10-20 15:36 +0100

csiph-web