Hi,
I am getting 'Index was outside the bounds of the array' in the following line
Select Case (args(iArgIndex))
Here is my code, it is VB.net Colsole application
Shared Function main(ByVal args() As String) As Integer
Dim iArgIndex As Integer = 1
Select Case (args(iArgIndex))
Case 10
Case 20
Case 30
Case 40
Case 50 'Interface
Dim startInfo As System.Diagnostics.Process
StartInfo
Dim pStart As New System.Diagnostics.Process
startInfo = New System.Diagnostics.Process
StartInfo(
"Somexe")
pStart.StartInfo = startInfo
pStart.Start()
pStart.WaitForExit() 'Your code will halt until the exe file has executed.
Case 60 'exports
Case 70 'reports
End Select
End Function
Start Free Trial