open and close application sequentially in python -


I am trying to open and close the application sequentially but the problem is that the application is being opened, But the next line is to enter, which is the end date of the application that I have to close the application manually.

  import oss.system ("scad3 file / TCT" "OSSystem" ("Taskley / PID scanned3.exe / t")  

Scanned 3 is the application I run, but the next line i.e., the work line, I have to manually close the window, please tell me what is a way to resolve it ??

You already have a lot Thank you very much

I think the OS system is a blocking call I p in python Try using Open Objects: -

  import subprocess p = subprances.Popen ("notepad .exe") p.terminate ()  
< P> Refer:


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -