Execute command line programs using vb.net
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Execute command line programs using vb.net

  1. #1
    Join Date
    Dec 2011
    Posts
    19

    Execute command line programs using vb.net

    I have a command line program which say, can calculate average. Now using vb.net how do I execute this "avg calc-avg" and read what is the average from the terminal?

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    15,000

    Re: Execute command line programs using vb.net

    No idea what you're talking about. Who wrote the 'program', what does it do, etc...
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,098

    Re: Execute command line programs using vb.net

    To explain better. Do you know what arguments this program exposes?
    Once you know that, you should be able to use the Process.Start to execute the program with its argument list
    To find out what arguments this program has, you could use :
    Program name /?
    Inside the command line

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center