I am using os.startfile to start the bat, but I can not find any way to start a bit file Explore its name.
What do I want to achieve:
Import import subprocess OS stafffile ('C: \\ folder \\ proov \\' batch.bat ')
Use raw string:
import OS os .startfile (r'C: \ folder \ proov \ .batch.bat ') Note that for a batch file, you can simply:
Import OS OS System (r'C: \ folder \ proov.batch.bat ') or
import subprocess subprances. Cole (RC: \ folder \ prow .. batch.bat ')
No comments:
Post a Comment