I'd like to write a batch file with a bit of processing around each command (specifically, I want to display the command plus the time it took). At the interactive prompt, I could do this with some sort of pre_exec and post_exec aliases, but they don't work in batch files. I suppose I could write an alias something like alias x=`echo %$ & timer on /Q & %$ & echo Elapsed: %@TIMER[1,s] & timer off /Q` but this needs to be specified explicitly and gets fiddly with compound commands (x cmd1 & cmd2). Is there a good equivalent of PRE_EXEC/POST_EXEC for batch files? Paul.