I'm writing a UI for some clients of mine in vb.net with visual studio 2008. Everything works fine until the VB code tries to execute this line of code
System.Diagnostics.Process.Start("CreatePort.vbs")
And this is the error I get
"A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in System.dll"
And this happens with any script I try to run in vb.net
Now, I know the script itself works because I've uesed it 3 dozen times over the past 2 weeks, the only thing I can think of is that I'm not calling the script properly.
Any Ideas?
I would bet if you put that in a Try/Catch block and in the catch output e.toString it will say something along the lines of "File not found"