Is it possible to execute a specific sub in a vbs file from a c# application?
I have looked at creating a Process and then launching it but can not find a way to specify which particular sub in the script file should be executed. Is there a way to specify this or is there a better way of doing it?
A vbs could look something like the sample below. What I want is from the C# code to launch either test1 or test2.
Public Sub test1
msgbox "Hey1"
End Sub
Public Sub test2
msgbox "Hey2"
End Sub