I tried the step you gave me but when I tried to run the process, I got this error "system cannot find the file specified". I save the perl script in my "c:" drive and it should be able to find it. Below is my code maybe you will have any help you can render.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim path As Integer
Dim returnValue As String()
returnValue = System.IO.Directory.GetFileSystemEntries("o:\\T2000\Profiles")
For path = 0 To UBound(returnValue)
ListBox1.Items.Add(returnValue(path))
Next
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim totalSelected As IList = ListBox1.SelectedItems()
Dim index As Integer
'Dim procID As Integer
Dim param1_folderLoc As String
For index = 0 To (totalSelected.Count() - 1)
param1_folderLoc = Convert.ToString(totalSelected.Item(index))
Dim pID As Process = System.Diagnostics.Process.Start("perl C:\\stwich_profile_copy.pl" & param1_folderLoc)
pID.WaitForExit()
' display results
ListBox2.Items.Add(" process was closed at: " & _
pID.ExitTime & "." & _
System.Environment.NewLine & "Exit Code: " & _
pID.ExitCode)
pID.Close()
Next
End Sub