ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Place a SHELL Window (https://www.excelbanter.com/excel-programming/306675-place-shell-window.html)

Robin Clay[_3_]

Place a SHELL Window
 
Greetings !

I currently have this-
--------------------------------------------
Open "C:\Runner.bat" For Output As #1
Print #1, "@ECHO off"
Print #1, "Echo Please wait -"
Print #1, "Echo This may take some time ...."
Print #1, " [ other DOS commands ] ."
Close

Shell "C:\Runner.bat", vbNormalFocus

MsgBox "Please wait " & vbCrLf & _
"until the DOS window closes."

Kill "C:\Runner.bat"
----------------------------------------------

The reason for the MsgBox
is to prevent VBA from KILLing the batch file
until it has completed running.

I would like the DOS window to cover the MsgBox.

How can I specify whereabouts on the screen
the DOS window will appear?


RClay AT haswell DOT com


Dave Peterson[_3_]

Place a SHELL Window
 
I don't have an answer, but maybe an alternative at your other post.

Robin Clay wrote:

Greetings !

I currently have this-
--------------------------------------------
Open "C:\Runner.bat" For Output As #1
Print #1, "@ECHO off"
Print #1, "Echo Please wait -"
Print #1, "Echo This may take some time ...."
Print #1, " [ other DOS commands ] ."
Close

Shell "C:\Runner.bat", vbNormalFocus

MsgBox "Please wait " & vbCrLf & _
"until the DOS window closes."

Kill "C:\Runner.bat"
----------------------------------------------

The reason for the MsgBox
is to prevent VBA from KILLing the batch file
until it has completed running.

I would like the DOS window to cover the MsgBox.

How can I specify whereabouts on the screen
the DOS window will appear?

RClay AT haswell DOT com


--

Dave Peterson


Robin Clay[_3_]

Place a SHELL Window
 

-----Original Message-----
I don't have an answer, but maybe
an alternative at your other post.


Thanks.

I have responded there -
it's not what I wanted, but thanks anyway

Does anyone else have an answer ?

Pretty please ?

Dave Peterson[_3_]

Place a SHELL Window
 
How about another followup--at your first post <vbg.

Robin Clay wrote:

-----Original Message-----
I don't have an answer, but maybe
an alternative at your other post.


Thanks.

I have responded there -
it's not what I wanted, but thanks anyway

Does anyone else have an answer ?

Pretty please ?


--

Dave Peterson



All times are GMT +1. The time now is 02:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com