Hey guys! New to this forum :)
Okay so basically when I click start on the debugging process I get Win32Exception has occurred or unhandled exception.
This is the code:
Public Function ExecuteCommand(ByVal filePath As String, ByVal arguments As String) As String
Dim p As Process
p = New Process()
p.StartInfo.FileName = filePath
p.StartInfo.Arguments = arguments
p.StartInfo.CreateNoWindow = True
p.StartInfo.UseShellExecute = False
p.StartInfo.RedirectStandardOutput = True
p.Start()
Return p.StandardOutput.ReadToEnd()
End Function
The issue is with "p.Start()".
Okay so basically when I click start on the debugging process I get Win32Exception has occurred or unhandled exception.
This is the code:
Public Function ExecuteCommand(ByVal filePath As String, ByVal arguments As String) As String
Dim p As Process
p = New Process()
p.StartInfo.FileName = filePath
p.StartInfo.Arguments = arguments
p.StartInfo.CreateNoWindow = True
p.StartInfo.UseShellExecute = False
p.StartInfo.RedirectStandardOutput = True
p.Start()
Return p.StandardOutput.ReadToEnd()
End Function
The issue is with "p.Start()".