+ 2

What modules have python to open and use another program through the code?

For example: I have console program which take on input password and I need write program which can: 1. Open program and use it 2. Crack password. I can do 2-nd goal, but I don’t know how to do 1-st goal

28th Jul 2018, 10:14 PM
Boom
Boom - avatar
6 Answers
+ 2
If you have windows, just use import os os.system("start filename.extension")
29th Jul 2018, 10:22 PM
inxanedev!
inxanedev! - avatar
+ 1
Tell me exactly what you need to do. By "opening" do you mean "starting the file as you would by double clicking it" or "run it in python console"
29th Jul 2018, 12:31 AM
inxanedev!
inxanedev! - avatar
+ 1
"starting the file by double clicking”
29th Jul 2018, 6:17 AM
Boom
Boom - avatar
+ 1
Remigiusz Schoida, do you know any libraries?
29th Jul 2018, 7:12 PM
Boom
Boom - avatar
+ 1
Ooh!😄 I forgot about this module. Remigiusz Schoida Thank you
30th Jul 2018, 6:08 AM
Boom
Boom - avatar
+ 1
but how I can USE program trough the code. For example: I must trough the code input in another program data.
31st Jul 2018, 9:02 PM
Boom
Boom - avatar