The ol Shell command


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: The ol Shell command

  1. #1
    Murray Foxcroft Guest

    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 ?




  2. #2
    Paul Clapham Guest

    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 ?
    >
    >
    >




  3. #3
    Murray Foxcroft Guest

    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 ?
    > >
    > >
    > >

    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center