Good Morning all! Yesterday was an intense day of coding as we are in the middle of rollout of our plans at work. These plans have what are called Elements, and those elements have element details, allocators, allocator details, allocator detail rules, rates, rate tables, rate table details, and rate table detail items. i got tired of manually creating these when others were so close so I came up with code to duplicate the element and what was below to another plan. So I was happy.
Today’s topic is how to get your application to wait for an external process that you called with System.Diagnostics.Process to finish. Make it a great day!
Dim TgtDirectory As String = "MyDir\"
Dim XYZFilter As String = "*.xyz"
Dim FileList As System.Collections.ObjectModel.ReadOnlyCollection(Of String)
Dim Process As New System.Diagnostics.Process
FileList = My.Computer.FileSystem.GetFiles(TgtDirectory, _
For Each foundfile As String In FileList
Using P As Process = Process.Start("dlg2dlx.bat", foundfile)
Technorati Tags: vb.net,.NET Framework,csharp,Process,Wait,External,Complete,System,Diagnostics,FileList,ObjectModel,ReadOnlyCollection,