Path: utzoo!mnetor!uunet!husc6!bbn!rochester!ur-tut!dpvc From: dpvc@ur-tut (Davide P. Cervone) Newsgroups: comp.sys.amiga.tech Subject: Re: Changing Directories Message-ID: <1842@ur-tut.UUCP> Date: 18 Apr 88 21:27:55 GMT References: <8804150317.AA26694@jade.berkeley.edu> Reply-To: dpvc@tut.cc.rochester.edu.UUCP (Davide P. Cervone) Organization: Univ. of Rochester Computing Center Lines: 17 In article <8804150317.AA26694@jade.berkeley.edu> SLMYQ@USU.BITNET writes: >>Actually, the zero lock assumes the boot device. Unless you never reassign >>sys: and never do anything with your boot disk then this is not guaranteed >>to be sys:. > >Great. So how can you tell what the system was booted off? I didn't think >AmigaDOS would make it that easy! :) You can call Info() with this lock to find out stuff about the device. Or you can call DupLock() to get a non-zero lock on the same device, and use the pointers it contains to find it in the device list (it's been over a year since I've done this kind of thing, so I can't be more specific). Davide P. Cervone dpvc@tut.cc.rochester.edu dpvc@ur-tut.UUCP DPVC@UORDBV.BITNET