Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!ames!ucbcad!ucbvax!decvax!tektronix!uw-beaver!cornell!batcomputer!hsgj From: hsgj@batcomputer.UUCP Newsgroups: comp.sys.amiga Subject: Assigned names and system requesters Message-ID: <108@batcomputer.tn.cornell.edu> Date: Thu, 5-Feb-87 02:40:38 EST Article-I.D.: batcompu.108 Posted: Thu Feb 5 02:40:38 1987 Date-Received: Sat, 7-Feb-87 16:58:34 EST Organization: Theory Center, Cornell U., Ithaca NY Lines: 46 Keywords: ASSIGN [] Is there any way to turn off the system requester that is displayed when one attempts to access a 'disk' that is not mounted? I have a helpfile displayer. By default, the help files it should display are located in the current directory. However, I thought it would be 'user friendly' if the user could ASSIGN HELP: my/help/dir so that he/she could locate the help files anywhere. Unfortunately, when I test to see if HELP: has been defined, if it *hasn't* been defined, an 'Insert HELP disk' system requester appears. This is not good... The real question, I guess, is whether it is possible to check for an ASSIGNed name without attempting to access the file system via that name. Any replies on this will be appreciated. The enclosed fragment should make this dilemma clear. --------------------------- start code fragment ---------------------- #define HELPDIR "HELP:" openfile(filename) char *filename; { long templock; char helpfile[64]; /* create helpfile name */ if ((templock = Lock(HELPDIR,ACCESS_READ)) == 0) strcpy(helpfile,filename); else { UnLock(templock); strcpy(helpfile,HELPDIR); strcat(helpfile,filename); } /* open and display helpfile */ /* [...] */ } --------------------------- end code fragment ---------------------- -- Dan Green -- ARPA: hsgj%vax2.ccs.cornell.edu@cu-arpa.cs.cornell.edu UUCP: ihnp4!cornell!batcomputer!hsgj BITNET: hsgj@cornella