Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Richard Ashbery Newsgroups: comp.sys.acorn.programmer Subject: Re: Set working directory Date: Sun, 20 Oct 2019 15:36:29 +0100 Organization: None Lines: 39 Message-ID: <5805f586d6basura@invalid.addr.uk> References: <5805eb497bbasura@invalid.addr.uk> X-Trace: individual.net ++A+SrNOkwkDIMozvczV8ATESih8eabtiWy8N0sLZqQ07ECNzm X-Orig-Path: uwclub.net!richard.ashbery Cancel-Lock: sha1:U6exG88aWogoNMSIHmNRWhFJc5Q= User-Agent: Pluto/3.16 (RISC OS/5.25) NewsHound/v1.52-32 Xref: csiph.com comp.sys.acorn.programmer:5849 In article , Steve Fryatt 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 > would do it? > If you add back in the complexity of the application folder, then > 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 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