import threading
from win32api import *

class MyThread(threading.Thread):
    def __init__(self, bat_path, **kwargs):
        threading.Thread.__init__(self, **kwargs)
        self.bat_path = bat_path
       
    def run(self):
        ShellExecute(0, None, self.bat_path, None, "c:\\", True)
   
for i in range(1,4):
    t = MyThread("c:\\test" + str(i) + ".bat")
    t.start()

相关文章:

  • 2022-12-23
  • 2021-07-20
  • 2021-09-02
  • 2021-08-02
  • 2022-12-23
猜你喜欢
  • 2021-10-22
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2021-12-01
  • 2022-02-02
  • 2021-10-12
相关资源
相似解决方案