-
The ol Shell command
I'm trying to write a command line application that reads some file names
and then runs a batch file. The problem is, when I run the batch file, the
program execution forks off and the program finishes while the 20 minute
odd batch job runs. I need for the batch job to run in the same command
window as the vb program was started from, ALTENATIVELY, the
vb program must at least wait for the batch to end.
Can VB programs write to the command window it was run from, sort of like
a C++ program uses stderr / stdout ?
-
Re: The ol Shell command
Yes, a VB program can be written so that it waits until the program it
shelled completes. The people over in the VB newsgroups can fill you in
with the details.
Murray Foxcroft <foxman@xsinet.co.za> wrote in message
news:3a112933@news.devx.com...
> I'm trying to write a command line application that reads some file names
> and then runs a batch file. The problem is, when I run the batch file, the
> program execution forks off and the program finishes while the 20 minute
> odd batch job runs. I need for the batch job to run in the same command
> window as the vb program was started from, ALTENATIVELY, the
> vb program must at least wait for the batch to end.
>
> Can VB programs write to the command window it was run from, sort of like
> a C++ program uses stderr / stdout ?
>
>
>
-
Re: The ol Shell command
I kinda really messed up in my busy state and posted here...
I need to know how to revoke a post...
Thanks though, Paul.
"Paul Clapham" <pclapham@core-mark.com> wrote in message
news:3a1167c5@news.devx.com...
> Yes, a VB program can be written so that it waits until the program it
> shelled completes. The people over in the VB newsgroups can fill you in
> with the details.
>
> Murray Foxcroft <foxman@xsinet.co.za> wrote in message
> news:3a112933@news.devx.com...
> > I'm trying to write a command line application that reads some file
names
> > and then runs a batch file. The problem is, when I run the batch file,
the
> > program execution forks off and the program finishes while the 20 minute
> > odd batch job runs. I need for the batch job to run in the same command
> > window as the vb program was started from, ALTENATIVELY, the
> > vb program must at least wait for the batch to end.
> >
> > Can VB programs write to the command window it was run from, sort of
like
> > a C++ program uses stderr / stdout ?
> >
> >
> >
>
>