Advertisement
calfred2808

Run python script using vb.net

Aug 8th, 2022
1,844
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.22 KB | None | 0 0
  1. 'run python using vb.net
  2.  
  3.  
  4.  
  5.  
  6. Dim psi = New ProcessStartInfo("c:\python27\python.exe", "myPythonScript.py")
  7. Dim proc = Process.Start(psi)
  8. proc.WaitForExit()
  9. If proc.ExitCode <> 0 then throw new Exception(" Script Failed")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement