Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

BUG: MSGBOX after DETACH returns early with 0 on Win7

Oct
92
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]
 
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?
 
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
 
Back
Top
[FOX] Ultimate Translator
Translate