none
[WinApi] To execute the pyhon script with arguments and get its output

    Question

  • Hello.

    I have a problem, which I need to solve. Due to I am not a WinAPI-programmer, I don't know, how to do it.

    I have a python script, which start as: "python Attempt0006-2.py 125800 125800 126120 126190 5615 526770.2174090254 199443.9274603734 30526.7073583357 340085.7909435491 131269.7419648964 28089.70269081854"

    It takes 11 numbers as a arguments.

    It's output - always  float-number, so one string of output.

    How to execute my script, using WinAPI function(s) and at the same time get its output? For example:

    output=WinAPI_Function("python Attempt0006-2.py 12580.......", any parameter, any parameter_else.....)

    I would be especially grateful if you answer writing a code.

    Thank you very much for help.

    Tuesday, June 11, 2019 7:54 PM