@echo off title MiniCMD echo MiniCMD :start echo. rem save cwdir to a variable for /f %%i in ('cd') do set CWDIR=%%i rem set the printout before the command set /P PRELUDE=%CWDIR% $ %=% %PRELUDE% goto start