in reply to Re^2: Prevent windows dialog when using file test -e
in thread Prevent windows dialog when using file test -e

He might have meant 0x8000. If 0x8000 works, I'd use that. Using 0x0001 could disable more than you intend to disable.

Reference: SetErrorMode

Replies are listed 'Best First'.
Re^4: Prevent windows dialog when using file test -e
by BrowserUk (Patriarch) on Jun 22, 2006 at 21:04 UTC

    ikegami++ Corrected.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re^4: Prevent windows dialog when using file test -e
by Outaspace (Scribe) on Jun 22, 2006 at 21:56 UTC
    Yes but Mode 0x8000 didn't disable the "Drive not ready" on my machine. Is there a Mode that only disable this Dialog ?
      Earlier, you said 8 didn't work. You hadn't said anything about 0x8000. I didn't know if it would work, which is why I suggested you use it if it works.
        Yes, first I tried 8, then 0x8000, then 0xFFFF and finally I've come to 0x0001. The last is the one I use currently cause it disables the Dialog (0xFFFF does too). I dont know if there is any other possibility (Mode) to do this, but a dialog poping up three times for each file tested with -e on a path that points to a empty CD-Rom is really annoying.