Hey guys, can someone help me convert the below code from C# to VB.NET?
I've tried a few online conversion tools but they don't seem to do it correctly.
' Get a ScheduledTasks Object for the computer named "DALLAS"
Dim st As New ScheduledTasks("\\DALLAS")
' Get an array of all the task names
Dim taskNames As String() = st.GetTaskNames()
' Open each task, write a descriptive String to the console
For Each name As String In taskNames
Dim t As Task = st.OpenTask(name)
Console.WriteLine(" " + t.ToString())
' Dispose the ScheduledTasks Object to release COM resources.
Or, if it's easier, what I'm trying to do is get a list of tasks from my local machine.