Method of running python script in batch file

Use the start command in the script :

@echo off
start python xxx.py

Note:

start command: Start a separate "command prompt" window to run the specified program or command. If used without parameters,

start will open a second command prompt window.

Use the following parameters:

/b It is not necessary to open a new "Command Prompt" window when starting the application.

E.g:

start /b D:\apache-jmeter-4.0\bin\batchExecute\switchtoDC1999.py

Guess you like

Origin blog.csdn.net/baidu_24752135/article/details/107152244