Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!cbmvax!higgin From: higgin@cbmvax.UUCP (Paul Higginbottom SALES) Newsgroups: comp.sys.amiga Subject: Re: Assign Message-ID: <2507@cbmvax.UUCP> Date: Thu, 15-Oct-87 09:01:35 EDT Article-I.D.: cbmvax.2507 Posted: Thu Oct 15 09:01:35 1987 Date-Received: Sat, 17-Oct-87 08:45:30 EDT References: <1799@cadovax.UUCP> Organization: Commodore Technology, West Chester, PA Lines: 27 in article <1799@cadovax.UUCP>, keithd@cadovax.UUCP (Keith Doyle) says: > Does anyone out there have any idea how to find out (from 'C') > if something in particular is in the 'Assign' table? I want to > find out if a file exists using an Assign foo: wherever, and by > referencing the file as foo:filename. If either the file does > not exist, or the foo: has never been assigned, is what I want > to find out from my program. Unfortunately, if foo: has not > been assigned, what I get is a requester that says 'insert > foo: in any drive' which is not what I want. If it is not > in the Assign table, I want to assume that it does not > exist. > Keith Doyle Turn off requesters by setting your Process' pr_WindowPtr (I seem to recall, been a while) to -1L (or was it 0L?) and restoring it after. Then you can try locking foo, and DOS will give you the error code (if foo is no good) without bringing up the requester. Sorry for the sloppiness of this message. Haven't had my morning coffee... .. . . Paul.