I'm developping an ASP.NET application, and I need to use an old VBScript file that would be really hard to translate into pure VB in a VB function.
This VBScript is supposed to return an array that I'd like to use it in the VB function that called it.
How could I call the VBScript function in my VB application and use the value it returned?
I've search how to do so through many forum and FAQ, but it seems that these results where mainly focused on old version of the .NET framework.
If someone could explain it to me through a very basic example, I'll be very grateful.
I tried to use the following code for calling the VBS:
Dim WShell As Object
WShell = CreateObject("WScript.Shell")
WShell.Run("F:/SERVER/IIS/MyScript.vbs", 1, 0)