Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rocky!ali From: ali@rocky.STANFORD.EDU (Ali Ozer) Newsgroups: comp.sys.amiga Subject: How to cd, and disk drive trouble Message-ID: <796@rocky.STANFORD.EDU> Date: Thu, 3-Dec-87 12:20:32 EST Article-I.D.: rocky.796 Posted: Thu Dec 3 12:20:32 1987 Date-Received: Mon, 7-Dec-87 05:42:44 EST Reply-To: ali@rocky.stanford.edu (Ali Ozer) Organization: Stanford University Computer Science Department Lines: 20 --- Ok, two questions... What's the correct way to change directories in a program without going back to the original directory at the end? You first obtain a lock, with ACCESS_READ, then you examine it to make sure it is a directory, then you do a CurrentDir(). That's where the program ends. Now, do you need an UnLock() on the original lock you obtained? Without the UnLock(), everything seems to work fine, even after the program is done. With an UnLock(), the program exists fine, except the first dos operation you do ("dir," for instance), the machine hangs. Everything I read says to do an UnLock() on every lock obtained, though, so what's wrong? This is with Manx 3.40a. Second question: A friend's Amiga 1000 will not read/write from the floppy drives unless the right mouse button is held down. I haven't seen this, but he says it's been this way for a while. The machine won't even read kickstart or workbench. He's probably going to take it in some day, but, in the meantime, has anyone else experienced this? Any suggestions? Ali Ozer, ali@rocky.stanford.edu