Re: using console from vb6 app




"caver_dave" <caverdave@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C343FF97-4F74-4D8C-9EE1-8B2B493009AC@xxxxxxxxxxxxxxxx

I know how to start an application from VB, what I am trying to do is
instead of
using Shell "c:\windows\system32\cmd.exe", vbNormalFocus to open the
console
and then manually inputting the following
cd c:\r4 <enter>
C:\r4>r4 hello<enter>

Is there away to do this so the program runs In the console when you click
the run button?

Put those commands in a batch file and then execute it in your Shell
statement:

Shell "c:\windows\system32\cmd.exe /k rexxeditor.bat", vbNormalFocus


.


Loading