1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

BUG: MSGBOX after DETACH returns early with 0 on Win7

Discussion in 'Support' started by jabelli, Aug 27, 2009.

  1. jabelli

    Joined:
    Oct 29, 2008
    Messages:
    83
    Likes Received:
    0
    I noticed the MSGBOXs in one of my batch files closing on their own, and investigated the problem. I have reduced a demonstration to the simplest method:

    (detach dir) & MSGBOX OK OK & echo %_?

    TCC 10.00.75 Windows 7 [Version 6.1.7600]
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,732
    Likes Received:
    81
    jabelli wrote:

    It's a (known) Windows 7 bug. If MS doesn't fix in in the Windows 7
    release I'll try to hack around it.

    Rex Conn
    JP Software
     
  3. jabelli

    Joined:
    Oct 29, 2008
    Messages:
    83
    Likes Received:
    0
    Sorry; I didn't state that this is RTM (from MSDN), not the RC. I suppose they may patch it before October 22; I'll keep an eye on it. Is there a KB# associated with the issue?

    In the mean time, is there anything I can add to the batch file as a temporary workaround?
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,732
    Likes Received:
    81
    jabelli wrote:

    You can put a short delay after the DETACH; i.e., something like:

    (detach dir) & delay 10 10 & msgbox ok ok

    Rex Conn
    JP Software
     

Share This Page