@echo off set PHP_BIN=... & :: add path to php executable set DOCROOT=%~dp0public "%PHP_BIN%" -S localhost:8000 -t "%DOCROOT%"