BUG: MSGBOX after DETACH returns early with 0 on Win7

Oct 29, 2008
83
0
#1
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]
 

rconn

Administrator
Staff member
May 14, 2008
10,588
97
#2
jabelli wrote:

> 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 %_?
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
 
Oct 29, 2008
83
0
#3
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.
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?
 

rconn

Administrator
Staff member
May 14, 2008
10,588
97
#4
jabelli wrote:

> ---Quote (Originally by rconn)---
> 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.
> ---End Quote---
> 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.
>
> In the mean time, is there anything I can add to the batch file as a temporary workaround?
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