Search code examples
basic

Visual Basic Windows Form - Running Python script w/ button


I have a simple visual basic window (or 'form'), and at the click of a button on the form, I want my Python script to run. How would I go about this?


Solution

  • You can do something like :

    Dim ReturnValue
    
    ReturnValue= Shell("C:\python23\python ""C:\Myscripts\Mypythonscript.py"" ", vbHide)