import subprocess,os
def runsolve(file_dir,file):
pipe = subprocess.Popen("run.bat %s %s" %(file_dir,file), shell = True)
files = ['c:/1','c:/2']
copy_file= ['c:/1/1.key','c:/2/2.key']
threads = []
for i in range(2):
t1=threading.Thread(target=runsolve(files[i],copy_file[i]))
threads.append(t1)
if __name__ == '__main__':
for t in threads:
t.start()