Im trying to call a simple VB sub from windows task scheduler, the vb script is found inside a very large project so I have created a new item inside the project just to test the execution of the script. For now im just trying to return a simple string so that the process will go like this and this is also how I am going to be debugging and testing this:
Windows Task Scheduler > cmd line > .vb > sub/method
This is the test class I am working with for now.
Public Class clsSchedule
Public Sub RunTasksFromCommandLine(ByVal lstrArgs() As String)
Try
For i As Integer = 1 To lstrArgs.Length - 1 Step 1
lstrProcessKey = lstrArgs(i).Trim("-"c).Trim("/"c).ToUpper
Next i
End Try
End Sub
End Class