How I could execute a python script from within the VB.NET code?
I would like to use VB.NET for building a GUI for my python script. This is to be able to create a GUI for the user of a script.
I found this example:
Shell(c:\Program Files\python 266\python.exe path\myPythonScript.py +
" " + arg1 + " " + argN)
But I would like to know is there a more suitable way of executing python script?
I would also like to understand how I could handle errors in such setup.
Your help much appreciated!
Thanks,
meryloo
In VB you can also use the command:
shell( "d:\path\to\your\script.py arg1 arg2" )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With