@echo off
tasklist | find /C "python.exe" > temp.txtset /p num= < temp.txtdel /F temp.txtecho %num%if "%num%" == "0" start /D "C:\test\" test.py