Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!gatech!udel!new From: new@udel.EDU (Darren New) Newsgroups: comp.sys.amiga.tech Subject: Re: How do you disable DOS requesters ? Keywords: another dumb question Message-ID: <13175@louie.udel.EDU> Date: 15 Apr 89 18:29:28 GMT References: <1790@aucs.UUCP> Sender: usenet@udel.EDU Reply-To: new@udel.EDU (Darren New) Distribution: na Organization: University of Delaware Lines: 17 In article <1790@aucs.UUCP> 850031m@aucs.UUCP (GORDON R. MAC GREGOR) writes: >I am having a similar problem trying to read environment variables. I want >to diable the "Insert volume env:" requestor if env: is not assigned. >How do you do this? I have been searching books and source but have found >nothing so far. > -Ross :-) Look in your Process structure. There is a variable there called pr_WindowPtr. Somewhere in a manual which I can't find right now (DOS tech ref?) it says that if you set this to point to a window, DOS requesters will come up in this window. If you set it to 0, they will come up in their own window on WBENCH screen, and if you set it to -1 they will not come up at all and you will just get the error back (as if the user cancelled). I may have the 0 and -1 cases backwards, so just look at one of yours to see which it is. Also, be sure to put it back how you got it because DOS does not reinitialize this after each command. -- Disclaimer: I haven't done this. I only read about it :)