Dos-shell编程---运行python脚本

                                           运行python脚本

rem this is a dos shell script used to run a python script
@echo "python script"
:: the value of variable PYTHON_SCRIPT_PATH is the path of python script
:: you need modify the content inside the dobule quotation depending on your demand
@set PYTHON_SCRIPT_PATH="C:\Users\Administrator\Desktop\test.py"
@python %PYTHON_SCRIPT_PATH%
@echo "dos script run successfully"
@echo ~ ~  ~ ~  ~ ~
@echo  *    *    *
:: cmd command is used to keep reserve at dos windown if you run the bat
@cmd

猜你喜欢

转载自blog.csdn.net/yanlaifan/article/details/114226137