Process p = new System.Diagnostics.Process(); //设置新进程的工作目录,如果不设置那么新进程的工作目录为开启这个进程的工作目录 p.StartInfo.WorkingDirectory = @"E:\会计助手代码\CNCTKJPT\CNCTKJPT\bin\Debug"; //设置进程启动文件 p.StartInfo.FileName = @"CNCTKJPT.exe"; //设置进程启动参数 p.StartInfo.A
1.开启进程的两种方式 方式一: from multiprocessing import Process import time def task(name): print('%s is running' %name) time.sleep(3) print('%s is done' %name) if __name__ == '__main__': # Process(target=task,kwargs={'name':'子进程1'}) p = Process(target=task,arg