DOW Window

08-30-2004, 11:01 AM
Good Day,
I would like to generate a DOS window that pops ups when I execute the following like of code: shell (c:\temp\batchfile.bat). Currently a task bar entry is made but the window is collapsed. I would like for this DOS window to diaplay full size and visable so the user can see the information that is being displayed in the DOW window. Any suggestions on how t make this happen?

08-30-2004, 03:09 PM
Have a look at this article on MSDN: How To Attach a Console Window to Your Visual Basic Program (

Microsoft Knowledge Base Article - 171654

08-30-2004, 05:08 PM
I think all you want to do is this:

Shell "c:\temp\batchfile.bat", vbNormalFocus

By default the DOS window uses vbMinimizedFocus. Be aware thought that VB will carry on processing at the same time as your .bat file. If you would like for vb to wait for the bat file to finish have a look at this thread (

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum