Hack Forums
[Python] start python application from c# or vb.net - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] start python application from c# or vb.net (/showthread.php?tid=6086575)



start python application from c# or vb.net - madeha elsayedxxxx - Jun 11, 2020

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)


RE: start python application from c# or vb.net - The Continental - Jun 11, 2020






RE: start python application from c# or vb.net - madeha elsayedxxxx - Jun 11, 2020

(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


RE: start python application from c# or vb.net - DyMa - Jun 11, 2020

(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