I have 130 batch files stored in one central location, I want to create VB.NET program to execute those batch files in parallel NOT in sequence. and then return the output of these 130 batch files to Textbox control.
How can I cater the above requirements? or what's the recommended way of doing it, keeping in mind the program will run on a high Specs Server so performance is not an issue here.
What I have done is I placed this for loop inside Button_Click Event to get my .bat names & then to get them executed in parallel:
Dim Directory As New IO.DirectoryInfo("C:\Batch\")
Dim fileName As IO.FileInfo() = Directory.GetFiles("*.bat")
For Each file As IO.FileInfo In fileName
RichTextBox1.AppendText(file.ToString() & vbNewLine)
Next
But now here after i got the names of .dat, how to get them executed in parallel?