From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: d180ab3bd8,5e74e0b23842db90 X-Google-Attributes: gidd180ab3bd8,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.182.229 with SMTP id eh5mr1244910wic.1.1364344295684; Tue, 26 Mar 2013 17:31:35 -0700 (PDT) Path: p18ni19770wiv.0!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.103.MISMATCH!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border2.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsgate.cuhk.edu.hk!goblin3!goblin2!goblin.stu.neva.ru!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: Access to RSTS/E IOPAGE Registers Date: Wed, 20 Mar 2013 22:42:46 +0100 Organization: Update Computer Club Message-ID: References: <511e2731.130278790@nntp.aioe.org> <511e442b.137696544@nntp.aioe.org> <5120d34f.47638789@nntp.aioe.org> <512385cb.224392072@nntp.aioe.org> <512a1f3b.52491122@nntp.aioe.org> <51375fe9.58270507@nntp.aioe.org> <51498b34.39612647@nntp.aioe.org> NNTP-Posting-Host: 74.125.57.33 Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1363815771 7744 74.125.57.33 (20 Mar 2013 21:42:51 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Wed, 20 Mar 2013 21:42:51 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2013-03-20 14:01, Johnny Billquist wrote: > On 2013-03-20 11:15, paramucho wrote: >> On Thu, 07 Mar 2013 00:51:26 +0100, Johnny Billquist >> wrote: >> >> >>> RT11SH.SYS on the other hand is by default expected to be found in >>> LB:[1,1]. >>> >>> The moving of system independent tasks only came about in M+. Before >>> that there was only SYSUIC, and everything was expected to sit there. >> >> What I need is a simple default location, so I guess I'll use [1,1]. >> > > For things similar to RT11SH.SYS, [1,1] is a pretty reasonable place. > >> Is there anyway for a task to determine the directory from which the >> task was run? I can find the device and unit using "OV", but I can't >> see anyway to work out the directory. I want to use this information >> to automatically find related files--for example, when RTX.TSK is >> activated I want to be able to read "RTX.INI" from the same directory >> and to access "RTX.DSK" likewise from the same directory. > > Unfortunately, the answer is "no". Running a task that is installed > don't have a directory associated with it. Installed tasks just "are". By the way, depending on what is in those files, you might want to reconsider. If it is content that different users might want to configure differently, then you should either try to figure out there login directory, or possibly just use the current directory. And if we're talking about system global configuration files and whatnot, then the common solution is to use a known directory. For example [1,1], but there are many directories that might make sense, depending on what it is. Also, you could create your own directory that you use. No need to necessarily use any already existing directory. Johnny