@echo off SetLocal EnableDelayedExpansion set CustPython=D:\App\Python\ call !CustPython!python.exe my_script.py