locked
Issuing a command line command in VB.NET RRS feed

  • Question

  • I'm writing a small VB.NET command line program that searches for batch files in the working directory and then runs each of them.

    Getting the batch file names is easy. How do I run them?

    Wednesday, October 2, 2013 1:10 AM

Answers

All replies

  • Possibly use the Process.Start method.

    http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx

    http://msdn.microsoft.com/en-us/library/0w4h05yb.aspx


    Please BEWARE that I have NO EXPERIENCE and NO EXPERTISE and probably onset of DEMENTIA which may affect my answers! Also, I've been told by an expert, that when you post an image it clutters up the thread and mysteriously, over time, the link to the image will somehow become "unstable" or something to that effect. :) I can only surmise that is due to Global Warming of the threads.


    • Edited by Mr. Monkeyboy Wednesday, October 2, 2013 1:20 AM 5555
    • Proposed as answer by IronRazerz Wednesday, October 2, 2013 1:23 AM
    • Marked as answer by Jeff Whittle Wednesday, October 2, 2013 9:43 PM
    Wednesday, October 2, 2013 1:19 AM
  • Thanks Monkeyboy.
    Wednesday, October 2, 2013 9:42 PM
  • Thanks Monkeyboy.

    You're welcome Jeff.

    Please BEWARE that I have NO EXPERIENCE and NO EXPERTISE and probably onset of DEMENTIA which may affect my answers! Also, I've been told by an expert, that when you post an image it clutters up the thread and mysteriously, over time, the link to the image will somehow become "unstable" or something to that effect. :) I can only surmise that is due to Global Warming of the threads.

    Thursday, October 3, 2013 12:21 AM