Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

start python application from c# or vb.net

hello every one
i am new in c# , i made python application and it compiled correctly ,
however i want to start this python application from c# code using(Process.Start("");)
but it doesn't work!
how to run this python application from c# code
please not that the application is compiled ,
i want to run the application (not the code)


(Jun 11, 2020 06:37 AM)The Continental Wrote:  


thank you very much
but i want to run( python .exe application) after compiled , not python script
when i use proces.start , the application don't run
(Jun 11, 2020 02:05 PM)madeha elsayedxxxx Wrote:  thank you very much
but i want to run( python .exe application) after compiled , not python script
when i use proces.start , the application don't run

If it's in the same directory you need to load the Applicationpath + "/app.exe" so like Process.Start(AppDomain.CurrentDomain.BaseDirectory + "/app.exe"); or something

if not you'll have to specify the full directory


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 632 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[C#] by opsecJun 17, 2022 02:11 PM 2 228 Jun 17, 2022 02:11 PM
Last Post: benio2
[C#] by madeha elsayedxxxxJun 16, 2020 05:44 PM 7 233 Jun 16, 2020 05:44 PM
Last Post: XaXBioX